-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
enhancement in SDKNew feature or request in SDKNew feature or request in SDK
Milestone
Description
Description
As mentioned here https://apidocs.bitrix24.com/limits.html Bitrix24 has rate limits for requests.
It would be great if SDK will support some kind of rate limiting.
Example
$api = ServiceBuilderFactory::createServiceBuilderFromWebhook('<hook>');
$limit = new RateLimiter(500); // time in miliseconds between requests
$api = $api->withLimit($limit); // should limit (sleep) `ApiClient::getResponse` calls
$res = $api->getCRMScope()->lead()->batch->list(['ID' => 'ASC'], [], ['ID', 'DATE_MODIFY'], 1000000);mesilov
Metadata
Metadata
Assignees
Labels
enhancement in SDKNew feature or request in SDKNew feature or request in SDK