【发布时间】:2017-10-19 00:14:51
【问题描述】:
我正在向 GetResponse API 发送一个发布请求。一切正常,直到我添加一个自定义字段 (customFieldValues) 以与我的新电子邮件联系人一起保存。
$body_data =
[
'name' => $input['name'],
'email' => $input['email'],
'campaign' => [
'campaignId' => $campaign_id
],
'customFieldValues' => ['customFieldId' => 'LDe0h', 'value' => ['Save this test string.'] ]
];
当我发送请求时,我收到以下错误消息:
"errorDescription": "CustomFieldValue entry must be specified as array"
我现在已经尝试了一些方法,但不确定如何正确格式化以让 API 接受它。
参考链接: http://apidocs.getresponse.com/v3/case-study/adding-contacts
【问题讨论】:
标签: php api getresponse