2016-08-13 64 views
0

我使用getreponse php客戶端(https://github.com/GetResponse/getresponse-api-php/blob/master/src/GetResponseAPI3.class.php)將聯繫人添加到列表中。Getresponse v3 api -add contact error

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:

$fname ="mike"; 
$lname = ""; 
$email = "[email protected]"; 

$getresponse = new GetResponse('xxxxxxxxxxxxxxxxxxx'); 

$response = $getresponse->addContact(array(
'name'    => $fname . " " . $lname, 
'email'    => $email, 
'dayOfCycle'  => 0, 
'campaign'   => array('campaignId' => '999999999') 
)); 

當我嘗試這個代碼,我得到這個錯誤。

對此有何幫助?

回答

0

請勿使用您的請求中的廣告系列名稱,而要使用廣告系列標記。 你可以得到活動,包括使用此API方法標記列表:

https://apidocs.getresponse.com/en/v3/resources/campaigns#campaigns.get.all

其工作在我結束與出什麼問題

+0

我試圖競選令牌。它現在不顯示錯誤。但該聯繫人未列在廣告系列中。任何想法? –

+0

如果您想顯示訂閱者列表,那麼您需要使用此網址:https://apidocs.getresponse.com/zh-CN/v3/resources/contacts#contacts.get – user2302732