Skip to content

Commit

Permalink
Merge pull request #768 from SpaceOtterInSpace/v3-v2021-02-25
Browse files Browse the repository at this point in the history
Update params docs for 2021 version
  • Loading branch information
douglasmiller authored May 9, 2024
2 parents 1b8f135 + 1b6ae0f commit 0bd04f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ under the *Query Parameters* section of [any pageable endpoint](https://develope
Example filtering an sorting accounts:

```php
$params = array(
$options = array('params' = array(
// the following params are common amongst pageable endpoints
'limit' => 200, // 200 resources per page (http call)
'order' => 'asc', // asc or desc order
Expand All @@ -103,8 +103,8 @@ $params = array(
'email' => '[email protected]', // only accounts with this email
'subscriber' => true, // only accounts with a subscription in the active, canceled, or future state
'past_due' => false // no accounts with an invoice in the past_due state
);
$accounts = $client->listAccounts($params);
));
$accounts = $client->listAccounts($options);

foreach($accounts as $account) {
echo 'Account code: ' . $account->getCode() . PHP_EOL;
Expand Down

0 comments on commit 0bd04f3

Please sign in to comment.