mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-06 08:19:25 +03:00
22 lines
420 B
PHP
22 lines
420 B
PHP
<?
|
|
namespace Mailgun;
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
use Guzzle\Http\Client as Guzzler;
|
|
|
|
class Client{
|
|
|
|
protected $api_key;
|
|
protected $domain;
|
|
protected $client;
|
|
|
|
public function __construct($api_key, $domain){
|
|
$this->api_key = $api_key;
|
|
$this->domain = $domain;
|
|
$this->client = new Guzzler("https://api.mailgun.net/v2");
|
|
$this->client->setDefaultOption('auth', array ('api', $this->api_key));
|
|
}
|
|
}
|
|
|
|
?>
|