Skip to content

Releases: ufee/amoapi

Fixes

11 Jul 12:42
Compare
Choose a tag to compare

Old cooke file check fix
Last modified date is older than in database fix

Custom User-agent

29 Jun 16:19
Compare
Choose a tag to compare
0.9.4.0

Fix

Curl interfaces

13 Jun 12:30
Compare
Choose a tag to compare
0.9.3.8

Added curl interface support

Fixes php 8.2

17 Apr 10:12
Compare
Choose a tag to compare
0.9.3.7

Php 8.2 fixes

BugFix

03 Nov 09:07
Compare
Choose a tag to compare
0.9.3.6

Fix

Salesbot service added

26 Jun 10:54
Compare
Choose a tag to compare
$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);

Optimized search methods

06 Mar 14:01
Compare
Choose a tag to compare

searchByCustomField
searchByPhone
searchByEmail
searchByName

Small fixes

28 Feb 12:31
Compare
Choose a tag to compare
  • Create task without entity
  • Custom field value property check

Added Redis cache, added new CFields

30 Jan 15:11
Compare
Choose a tag to compare

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

\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])
);

Added onResponseCode method

16 Sep 13:24
Compare
Choose a tag to compare
$amo->queries->onResponseCode(429, function($query) {
	echo 'Resp code 429, retry '.$query->retries."\n";
});