Updated default API version from v2 to v3

http://blog.mailgun.com/default-api-version-now-v3/
This commit is contained in:
Wietse de Vries 2015-03-24 11:57:23 +01:00 committed by Jesse Spears
parent e1406e3936
commit edae22eba4
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class Mailgun{
* @param string $apiVersion
* @param bool $ssl
*/
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v2", $ssl = true){
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v3", $ssl = true){
$this->apiKey = $apiKey;
$this->restClient = new RestClient($apiKey, $apiEndpoint, $apiVersion, $ssl);
}

View File

@ -9,7 +9,7 @@ class TestBroker extends RestClient
protected $apiEndpoint;
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v2")
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v3")
{
$this->apiKey = $apiKey;
$this->apiEndpoint = $apiEndpoint;

View File

@ -10,7 +10,7 @@ class Mailgun extends Base
protected $debug;
protected $restClient;
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v2")
public function __construct($apiKey = null, $apiEndpoint = "api.mailgun.net", $apiVersion = "v3")
{
$this->restClient = new TestBroker($apiKey, $apiEndpoint, $apiVersion);
}