mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-21 20:16:03 +03:00
Update Examples
Method `::configure` replaced by a constructor
This commit is contained in:
parent
4055fea33d
commit
16d0a04014
@ -93,7 +93,7 @@ use Mailgun\Hydrator\ArrayHydrator;
|
||||
$configurator = new HttpClientConfigurator();
|
||||
$configurator->setApiKey('key-example');
|
||||
|
||||
$mg = Mailgun::configure($configurator, new ArrayHydrator());
|
||||
$mg = new Mailgun($configurator, new ArrayHydrator());
|
||||
$data = $mg->domains()->show('example.com');
|
||||
|
||||
foreach ($data['receiving_dns_records'] as $record) {
|
||||
@ -127,7 +127,7 @@ For example, the bin id in this URL (http://bin.mailgun.net/aecf68de) is `aecf68
|
||||
$configurator = new HttpClientConfigurator();
|
||||
$configurator->setEndpoint('http://bin.mailgun.net/aecf68de');
|
||||
$configurator->setDebug(true);
|
||||
$mg = Mailgun::configure($configurator);
|
||||
$mg = new Mailgun($configurator);
|
||||
|
||||
# Now, compose and send your message.
|
||||
$mg->messages()->send('example.com', [
|
||||
|
Loading…
Reference in New Issue
Block a user