mirakl / sdk-php-shop

Mirakl PHP SDK for sellers
30 stars 16 forks source link

Too many requests #61

Closed egalindoEH closed 7 months ago

egalindoEH commented 7 months ago

Hi, Im new with this SDK. I was developing scripts to be used with Mirakl using multi CURL, but I started facing some problems with status 429 - Too many requests.

I get all orders, but some clients have thousands of it in few days, and others in some months. Is there any info about how many requests per minute we could do and also how many seconds we have to wait in case of status 429?

using $api = new ShopApiClient(...); Im getting $api['options']['connect_timeout'] : 5,

Extra: And being developer is difficult to have access to Mirakl, so I dont know if there's a webhook to get those orders that are updated instead of click a button to get and loop them validating each with DB registers

egalindoEH commented 7 months ago

Using SDK was better than Curl. I solved my main problem with high amount of orders before timeout error.

But still want to know if there's a way to connect a webhook with Mirakl