mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-11 10:49:23 +03:00
Updated default API version from v2 to v3
http://blog.mailgun.com/default-api-version-now-v3/
This commit is contained in:
parent
e1406e3936
commit
edae22eba4
@ -33,7 +33,7 @@ class Mailgun{
|
|||||||
* @param string $apiVersion
|
* @param string $apiVersion
|
||||||
* @param bool $ssl
|
* @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->apiKey = $apiKey;
|
||||||
$this->restClient = new RestClient($apiKey, $apiEndpoint, $apiVersion, $ssl);
|
$this->restClient = new RestClient($apiKey, $apiEndpoint, $apiVersion, $ssl);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ class TestBroker extends RestClient
|
|||||||
|
|
||||||
protected $apiEndpoint;
|
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->apiKey = $apiKey;
|
||||||
$this->apiEndpoint = $apiEndpoint;
|
$this->apiEndpoint = $apiEndpoint;
|
||||||
|
@ -10,7 +10,7 @@ class Mailgun extends Base
|
|||||||
protected $debug;
|
protected $debug;
|
||||||
protected $restClient;
|
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);
|
$this->restClient = new TestBroker($apiKey, $apiEndpoint, $apiVersion);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user