MailChimp 活动内容文档 -https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content
我正在尝试通过 API 将活动内容中的一些占位符替换为实际值。起初,我认为可能存在一些语法错误或内部逻辑错误,例如非唯一性mc:edit
变成一个mc:repeatable
这将使 HTML 被 MailChimp 拒绝/拒绝,因此更新不会发生,但事实并非如此。
尝试用简单的替换 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 16:26:14 [::1][9804][-][warning][application] calling GET /campaigns/xyz/content []
2018-02-26 16:26:14 [::1][9804][-][warning][application] got updated html (my "test" paragraph + auto footer from MailChimp) and proper plain_text
根据这些,一切看起来都很好,这意味着两个版本都按预期进行了更新。但是,在下一个 API/MailChimp 仪表板请求中,它会显示旧的 HTML 内容,仅保留我刚刚在纯文本版本中进行的更新。
没有错误,没有什么可调查的。这可能是任何内部 MailChimp 行为。
PS:我知道设置 Mailchimp 活动内容 html 不起作用 https://stackoverflow.com/questions/47026542/setting-mailchimp-campaign-content-html-not-working or MailChimp API v3 活动内容模板部分 https://stackoverflow.com/questions/33897302/mailchimp-api-v3-campaign-content-template-sections,但提供的所有答案都没有帮助。
PS2:我知道我应该联系 MailChimp,但根据
我们的 MailChimp 支持团队没有接受过深入的 API 故障排除培训。如果您需要开发人员帮助您使用 API 进行配置,请查看我们出色的专家目录,其中列出了可以聘请来提供帮助的第三方 MailChimp 专家。
他们不提供 API 故障排除支持。