我正在尝试使用以下代码获取 mailjet 统计信息:
require 'vendor/autoload.php';
use \Mailjet\Resources;
$mj = new \Mailjet\Client('xxxxxxxxxxxxxxxxxxxx','xxxxxxxxxxxxxxxx');
$body = [
'EventType' => "unsub",
'Url' => "http://example.com/Eventcallbackurl"];
$response = $mj->post(Resources::$Eventcallbackurl, ['body' => $body]);
$response->success();
var_dump($response->getData()));
所以这是代码返回以下错误:
MJ18 EventType|Backup 的值为“5|false”的 EventCallbackURL 资源已存在。