-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #768 from SpaceOtterInSpace/v3-v2021-02-25
Update params docs for 2021 version
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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; | ||
|