Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update params docs for 2021 version #768

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading