Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytolkachyov authored Dec 6, 2022
1 parent 2f739fd commit fb193e9
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,58 @@
# WT Amo CRM library for Joomla 4
A small PHP library for Joomla 4 and Amo CRM. For developers.
As part of the package
- amoCRM connection library
- settings plugin for connecting to Amo CRM System - WT Amo CRM Library
### Connecting the library to your Joomla extension
```
use Webtolk\Amocrm\Amocrm;
$amocrm = new Amocrm();
$result_amo_crm = $amocrm->getAccountInfo();
```
### Amo CRM Fields for Joomla Form
The library contains a set of Joomla Form fields with information obtained from Amo CRM.
#### Accountinfo
Outputs html with data about the Amo CRM account. Example of using Joomla 4 modules and plugins in XML manifests.
```
<field addfieldprefix="Webtolk\Amocrm\Fields" type="accountinfo" name="accountinfo"/>
```
#### Companiestagslist - Companies tags list 
A list of tags for companies in Amo CRM. An example of using Joomla 4 modules and plugins in XML manifests.
```
<field addfieldprefix="Webtolk\Amocrm\Fields" type="companiestagslist" name="company_tag_id"/>
```
#### Contactstagslist - Contacts tags list
A list of tags for contacts in Amo CRM. An example of using Joomla 4 modules and plugins in XML manifests.
```
<field addfieldprefix="Webtolk\Amocrm\Fields" type="contactstagslist" name="contact_tag_id"/>
```
#### Leadcustomfieldslist - Lead custom fields list
A list of custom Amo CRM fields for transactions.
```
<field addfieldprefix="Webtolk\Amocrm\Fields" type="leadcustomfieldslist" name="lead_custom_field_id"/>
```
#### Leadspipelineslist - Leads pipelines list
List of Amo CRM sales funnels.
```
<field addfieldprefix="Webtolk\Amocrm\Fields" type="leadspipelineslist" name="pipeline_id"/>
```
#### Leadstagslist - Leads tags list
List of tags for deals
```
<field addfieldprefix="Webtolk\Amocrm\Fields" type="leadstagslist" name="lead_tag_id"/>
```
##List of library methods
- getAccountInfo
- getLeadById
- createLeads
- createLeadsComplex
- getTags
- getLeadsPiplines
- getLeadsCustomFields
- getContactsCustomFields
- getCompaniesCustomFields
- getCustomersCustomFields
- getContacts
- getUserById

Docs in progress. Methods are described in library code (PHP Doc block)

0 comments on commit fb193e9

Please sign in to comment.