mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 00:25:37 +03:00
Add endpoint to the create function
This commit is contained in:
parent
1835bc28d7
commit
860d49d9d2
@ -107,9 +107,11 @@ class Mailgun
|
|||||||
*
|
*
|
||||||
* @return Mailgun
|
* @return Mailgun
|
||||||
*/
|
*/
|
||||||
public static function create($apiKey)
|
public static function create($apiKey, $endpoint = 'https://api.mailgun.net')
|
||||||
{
|
{
|
||||||
$httpClientConfigurator = (new HttpClientConfigurator())->setApiKey($apiKey);
|
$httpClientConfigurator = (new HttpClientConfigurator())
|
||||||
|
->setApiKey($apiKey)
|
||||||
|
->setEndpoint($endpoint);
|
||||||
|
|
||||||
return self::configure($httpClientConfigurator);
|
return self::configure($httpClientConfigurator);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user