Releases: ufee/amoapi
Memory usage optimized
Get 20 000 entitys with custom fields
Memomy usage: ~130 mb
Example:
$companies = $amo->companies()->maxRows(20000)->recursiveCall();
$companies->each(function(&$company) {
// handle item
$company->id;
$company->cf('Name')->getValue();
// after handled clear mem for this item
$company = null;
});
// done
Added catalog_elements_links for leads
0.8.3.1 Added catalog_elements_links
Auto link company
Automatically link $entity->company_id from creator entity.
for lead from contact
$lead = $contact->createLead();
for contact from lead
$contact = $lead->createContact();
Added custom field - Calendar
0.8.2.4 Added calendar cfield
Auth methods changed
Fixed 401 problem
Added curl timeouts
0.8.2.2 Added timeouts
Added fields
$lead->company_name;
$contact->company_name;
$contact->first_name;
$contact->last_name;
New methods
Entity field hash
$entity->getHash();
Task methods
$task->hasExpired();
$task->startDate($format = 'Y-m-d H:i:s');
$task->endDate($format = 'Y-m-d H:i:s')
Added new methods
$note->setPinned(true);
$note->getAattachment();