File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ Rate limit info is passed via the rate limit headers.
496496You can access this information as follows:
497497
498498``` php
499- $rate_limit = $intercom ->getRateLimitDetails();
499+ $rate_limit = $client ->getRateLimitDetails();
500500print("{$rate_limit['remaining']} {$rate_limit['limit']} \n");
501501print_r($rate_limit['reset_at']->format(DateTime::ISO8601));
502502```
@@ -542,14 +542,14 @@ require "vendor/autoload.php";
542542
543543use Intercom\IntercomClient;
544544
545- $intercom = new IntercomClient(getenv('AT'), null);
546- $resp = $intercom ->users->scrollUsers([]);
545+ $client = new IntercomClient(getenv('AT'), null);
546+ $resp = $client ->users->scrollUsers([]);
547547$count = 1;
548548echo "PAGE $count: " . sizeof($resp->users);
549549echo "\n";
550550while (!empty($resp->scroll_param) && sizeof($resp->users) > 0) {
551551 $count = ++$count;
552- $resp = $intercom ->users->scrollUsers(["scroll_param" => $resp->scroll_param]);
552+ $resp = $client ->users->scrollUsers(["scroll_param" => $resp->scroll_param]);
553553 echo "PAGE $count: " . sizeof($resp->users);
554554 echo "\n";
555555}
You can’t perform that action at this time.
0 commit comments