Skip to content

Commit d74376e

Browse files
authored
Update README.md (#309)
1 parent f1a443b commit d74376e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Rate limit info is passed via the rate limit headers.
496496
You can access this information as follows:
497497

498498
```php
499-
$rate_limit = $intercom->getRateLimitDetails();
499+
$rate_limit = $client->getRateLimitDetails();
500500
print("{$rate_limit['remaining']} {$rate_limit['limit']} \n");
501501
print_r($rate_limit['reset_at']->format(DateTime::ISO8601));
502502
```
@@ -542,14 +542,14 @@ require "vendor/autoload.php";
542542

543543
use 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;
548548
echo "PAGE $count: " . sizeof($resp->users);
549549
echo "\n";
550550
while (!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
}

0 commit comments

Comments
 (0)