私は送信した電子メールにMailGunの統計情報追跡を使用する電子メールキャンペーンを作成しようとしています。私は、PHPのライブラリを使用しています、と私は次のコードを使用して最初のキャンペーンを作成に成功しています:私はそれを利用した新しいキャンペーンを作成しようと次にMailGun APIキャンペーン
stdClass Object ([http_response_body] => stdClass Object ([campaign] => stdClass Object ([bounced_count] => 0 [clicked_count] => 0 [complained_count] => 0 [created_at] => Thu, 24 Mar 2016 21:55:38 GMT [delivered_count] => 0 [dropped_count] => 0 [id] => test04 [name] => test04 [opened_count] => 0 [submitted_count] => 0 [unsubscribed_count] => 0) [message] => Campaign created) [http_response_code] => 200)
:
$result = $mgClient->post("$domain/campaigns", array("name" => "test04", "id" => "test04"));
PHP結果ダンプをIDと名前を変えコード:
$result = $mgClient->post("$domain/campaigns", array("name" => "test05", "id" => "test05"));
私は、次のPHPエラーを取得:
Fatal error: Uncaught exception 'Mailgun\Connection\Exceptions\GenericHTTPError' with message 'An HTTP Error has occurred! Check your network connection and try again.' in C:\inetpub\wwwroot\test_project\vendor\mailgun\mailgun-php\src\Mailgun\Connection\RestClient.php:136 Stack trace: #0 C:\inetpub\wwwroot\test_project\vendor\mailgun\mailgun-php\src\Mailgun\Connection\RestClient.php(90): Mailgun\Connection\RestClient->responseHandler(Object(Guzzle\Http\Message\Response)) #1 C:\inetpub\wwwroot\test_project\vendor\mailgun\mailgun-php\src\Mailgun\Mailgun.php(80): Mailgun\Connection\RestClient->post('mailgun.tekinfo...', Array, Array) #2 C:\inetpub\wwwroot\test_project\index.php(35): Mailgun\Mailgun->post('mailgun.tekinfo...', Array) #3 {main} thrown in C:\inetpub\wwwroot\test_project\vendor\mailgun\mailgun-php\src\Mailgun\Connection\RestClient.php on line 136
無料のアカウントに1のキャンペーン制限はありますか?
ご協力いただければ幸いです。
おかげ