Skip to content

Commit

Permalink
Merge pull request #4 from xolf/patch-3
Browse files Browse the repository at this point in the history
Handle ten second rate limit
  • Loading branch information
trippo authored Jul 15, 2024
2 parents 8e6e73e + f92699b commit 9cbf0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HubspotEmailChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function callApi(string $baseUrl, string $method, array $params = []):
$params['hapikey'] = $apiKey;
}

$http = Http::acceptJson();
$http = Http::acceptJson()->retry(3, 11 * 1000);

if (is_null($apiKey)) {
if (is_null(config('hubspot.access_token'))) {
Expand Down

0 comments on commit 9cbf0c9

Please sign in to comment.