0
我创建Mailchimp模板与重复的部分是这样的:Mailchimp重复的部分名称
<div class="article" mc:repeatable="article">
<h3 mc:edit="headline">Headline</h3>
<p mc:edit="author">Author</p>
</div>
当我使用Mailchimp API游乐场检查默认内容(GET模板/ my_template_id /默认内容)本模板,可重复部分显示为repeat_1。
所以,当我需要使用这个模板来设置活动内容,我必须填写与参数:
{'template': {'id': 9999, 'sections': {'repeat_1': [{'headline': 'Headline01', 'author': 'author01'}, {'headline': 'Headline02', 'authors': 'author02'}]}}}
它工作正常,在这条路上,但有什么办法,我可以使用更好的命名?我不想保留它作为repeat_1。