我使用 getreponse php 客户端(https://github.com/GetResponse/getresponse-api-php/blob/master/src/GetResponseAPI3.class.php)将联系人添加到列表中。
$fname ="mike";
$lname = "";
$email = "mike@test.com";
$getresponse = new GetResponse('xxxxxxxxxxxxxxxxxxx');
$response = $getresponse->addContact(array(
'name' => $fname . " " . $lname,
'email' => $email,
'dayOfCycle' => 0,
'campaign' => array('campaignId' => '999999999')
));
尝试此代码时出现此错误:
object(stdClass)#2 (7) { ["httpStatus"]=> int(403) ["code"]=> int(0) ["codeDescription"]=> string(38) "Internal error, please contact support" ["message"]=> string(58) "Access Forbidden! You have no access to campaign: 9999999" ["moreInfo"]=> string(46) "https://apidocs.getresponse.com/en/v3/errors/0" ["context"]=> array(0) { } ["uuid"]=> string(36) "503b85fb-799c-46ec-b297-" }
我有正确的 API 密钥和活动 ID。
对此有什么帮助吗?