diff --git a/HISTORY.md b/HISTORY.md index 8645147..1b4705b 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # createsend-php history +## v5.1.3 - 15th May, 2017 + +* Changed local API timeout from 10 sec to 20 sec + ## v5.1.2 - 15th May, 2017 * Added support for Behavioral Event data diff --git a/README.md b/README.md index 8d911f9..9ac471b 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,8 @@ $wrap = new CS_REST_General($auth); $result = $wrap->get_clients(); var_dump($result->response); ``` +## API Call Timeout +You can set your local API call timeout time in createsend-php\class\transport.php line 11, in the CS_REST_CALL_TIMEOUT variable. Currently the default is 20 secs. ## Examples diff --git a/class/base_classes.php b/class/base_classes.php index 2c4f44d..f82fa77 100644 --- a/class/base_classes.php +++ b/class/base_classes.php @@ -4,7 +4,7 @@ require_once dirname(__FILE__).'/transport.php'; require_once dirname(__FILE__).'/log.php'; -defined('CS_REST_WRAPPER_VERSION') or define('CS_REST_WRAPPER_VERSION', '5.1.2'); +defined('CS_REST_WRAPPER_VERSION') or define('CS_REST_WRAPPER_VERSION', '5.1.3'); defined('CS_HOST') or define('CS_HOST', 'api.createsend.com'); defined('CS_OAUTH_BASE_URI') or define('CS_OAUTH_BASE_URI', 'https://'.CS_HOST.'/oauth'); defined('CS_OAUTH_TOKEN_URI') or define('CS_OAUTH_TOKEN_URI', CS_OAUTH_BASE_URI.'/token'); diff --git a/class/transport.php b/class/transport.php index 660f177..5c64c3f 100644 --- a/class/transport.php +++ b/class/transport.php @@ -5,10 +5,10 @@ defined('CS_REST_PUT') or define('CS_REST_PUT', 'PUT'); defined('CS_REST_DELETE') or define('CS_REST_DELETE', 'DELETE'); if (false === defined('CS_REST_SOCKET_TIMEOUT')) { - define('CS_REST_SOCKET_TIMEOUT', 10); + define('CS_REST_SOCKET_TIMEOUT', 20); } if (false === defined('CS_REST_CALL_TIMEOUT')) { - define('CS_REST_CALL_TIMEOUT', 10); + define('CS_REST_CALL_TIMEOUT', 20); } if(!function_exists("CS_REST_TRANSPORT_get_available")) {