Skip to content

Commit

Permalink
Merge pull request #186 from vivoconunxino/patch-1
Browse files Browse the repository at this point in the history
Adding setCurlTimeout info
  • Loading branch information
escopecz authored Jan 25, 2019
2 parents 6ff1dfa + 26b6cf6 commit cf0d292
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ $auth = $initAuth->newAuth($settings, 'BasicAuth');
)

```
**Note:** You can also specify a CURLOPT_TIMEOUT in the request (default is set to wait indefinitely):
```php
$initAuth = new ApiAuth();
$auth = $initAuth->newAuth($settings, 'BasicAuth');
$timeout = 10;
$auth->setCurlTimeout($timeout);
```

## API Requests
Now that you have an access token and the auth object, you can make API requests. The API is broken down into contexts.
Expand Down

0 comments on commit cf0d292

Please sign in to comment.