MailChimp广告系列内容文档 - https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content
我正在尝试通过API将广告系列内容中的某些占位符替换为实际值.起初,我认为可能存在一些语法错误或内部逻辑错误,例如非唯一mc:edit的错误mc:repeatable,这会使得MailChimp拒绝/拒绝HTML,因此更新没有发生,但事实并非如此.
尝试用简单的替换html,<p>test</p>它仍然无法正常工作.
这里有几个本地日志,我将使用xyz作为我的广告系列ID:
2018-02-26 16:26:13 [::1][9804][-][warning][application] calling GET /campaigns/xyz/content []
2018-02-26 16:26:13 [::1][9804][-][warning][application] got both plain_text and html versions of content
2018-02-26 16:26:13 [::1][9804][-][warning][application] calling PUT /campaigns/xyz/content {"html":"<p>test</p>"}
2018-02-26 16:26:14 [::1][9804][-][warning][application] got response [
'plain_text' => 'test' + other MailChimp stuff such as footer, that were appended automatically by MailChimp,
'html' => '<p>test</p>'
]
// calling GET immediately after PUT in order to see if any update occurred
2018-02-26 …