From 26b6cf68b16b585c94c7d774fdc7d69f844089c0 Mon Sep 17 00:00:00 2001 From: vivoconunxino Date: Fri, 25 Jan 2019 15:34:59 +0100 Subject: [PATCH] Adding setCurlTimeout info --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 64edd9c4..bfc34180 100644 --- a/README.md +++ b/README.md @@ -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.