Amoapi Versions Save

AmoCRM PHP API/oAuth Client

0.9.3.7

1 month ago

0.9.3.6

6 months ago

0.9.3.5

10 months ago
$bots = $amo->salesbots()->get($page = 1, $limit = 250);
$bots = $amo->salesbots;

$start = $amo->salesbots()->start($bot_id, $entity_id, $entity_type = 2);
$stop = $amo->salesbots()->stop($bot_id, $entity_id, $entity_type = 2);

0.9.3.4

1 year ago

searchByCustomField searchByPhone searchByEmail searchByName

0.9.3.3

1 year ago
  • Create task without entity
  • Custom field value property check

0.9.3.2

1 year ago

Вместе с обновлением на новую версию, необходимо заменить (если используется):

\Ufee\Amo\Collections\QueryCollection::setCachePath('path_to/cache');

На новый формат:

$apiClient->queries->setCacheStorage(
	new \Ufee\Amo\Base\Storage\Query\FileStorage($apiClient, ['path' => 'path_to/cache'])
);

Или:

$redis = new \Redis();
$redis->connect('/var/run/redis/redis.sock');
$redis->setOption(\Redis::OPT_SERIALIZER, \Redis::SERIALIZER_PHP); // \Redis::SERIALIZER_IGBINARY recommended
$redis->select(5); // switch to specific db

$apiClient->queries->setCacheStorage(
	new \Ufee\Amo\Base\Storage\Query\RedisStorage($apiClient, ['connection' => $redis])
);

0.9.3.1

1 year ago
$amo->queries->onResponseCode(429, function($query) {
	echo 'Resp code 429, retry '.$query->retries."\n";
});

0.9.3.0

1 year ago

0.9.2.9

1 year ago

Execute api query:

$fp = fopen('path/debug.log', 'w+');
$query = new \Ufee\Amo\Api\Oauth\Query($crm);
$query->setMethod('GET');
$query->setUrl('/api/v4/contacts');
$query->verbose($fp);
$query->execute();

And check debug.log

0.9.2.8

2 years ago
$cfs = $amo->account->customFields->catalogs->get(6897);
$cf = $cfs->find('field_type', 18)->first();
print_r($cf->values_tree);
$lead = $this->amo->leads()->find(31975373);
print_r($lead->customFields->byTypeId(4));