douxia2137 2015-07-04 13:04
浏览 58
已采纳

如何使用node.js自动更新mailchimp模板

How do I update a mailchimp template automatically using node.js.

So if I changed the index.html from the github email repo, it would update the mailhimp template inside mailchimp itself.

  • 写回答

1条回答 默认 最新

  • dongtuliao6760 2015-07-04 15:22
    关注

    Unfortunately, you won't be able to update a MailChimp template from Node.js just by editing a html file in a github repo.

    You'll have to use the MailChimp API. You can access the API's directly or you can use one of the MailChimp API wrappers for Node.js. mailchimp-api-node is the official MailChimp wrapper, but I use node-mailchimp

    Depending on what you're updating, the two API's you should look into are:

    /campaigns/template-content to just update the content portion of the template https://apidocs.mailchimp.com/api/2.0/campaigns/template-content.php

    /templates/update to update your user templates (not campaign content) to be used in campaigns https://apidocs.mailchimp.com/api/2.0/templates/update.php

    Note: These are version 2.0 API's. I haven't had a chance to work with the new version 3.0 API's yet so there may be changes. Version 2.0 API's still work but they just aren't being updated anymore.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services