mailchimp php集成 [英] mailchimp php integration

查看:54
本文介绍了mailchimp php集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一个简单的简单示例/演示,向我展示如何构建一个琐碎/概念验证的网站,该网站将收集用户电子邮件(也许是名字),并将此名称添加到在上创建的列表中mailchimp.

I am trying to find a simple bare bones example/demo that shows me how I can build a trivial/proof of concept website that will collect user email (and maybe first name), and add this name to a list created on mailchimp.

为了澄清,我不仅在问如何创建一个PHP/mySQl网站-我已经知道该怎么做,并且我已经知道如何在页面上放置一个表单等.

To clarify, I am not merely asking how to create a PHP/mySQl website - I already know how to do that, and I already know how to place a form on a page etc.

假设我已经具备以下条件:-带有注册表格的php/MySQL网站-在mailchimp上新建的列表

Assuming I already have the following: - A php/MySQL site with a registration form - A newly created list on mailchimp

更具体地说,我希望用户能够在我网站的页面上注册,然后希望发生以下一系列事件:

More specifically, I want a user to be able to register on a page on my site, and then I want the following sequence of events to happen:

  1. 当用户单击我页面上的提交"按钮时,其详细信息将发送到mailchimp并添加到在mailchimp上创建的特定列表中.
  2. 他们通过mailchimp发送了一封确认电子邮件
  3. 一旦确认订阅,就会使用mailchimp的令牌将其重定向回我网站上的页面
  4. 我将其详细信息(由mailchimp提供)存储到我的MySQL数据库中
  5. 我向确认的订阅者发送一封带有附件的电子邮件
  6. 当用户从列表中退订时,我会收到mailchimp的通知,并且可以在数据库中将该用户标记为退订.

我找不到一个简单的演示(或教程)来演示如何实现上面列出的必需功能.谁能推荐一个或多个链接来帮助我开始实现这些特定的裸露骨头"功能?

I have not been able to find a simple demo (or tutorial) that shows how to implement the required functionality listed above. Can anyone recommend a link (or links) to get me started with implementing these specific "bare bone" functionality?

推荐答案

我认为文档还不错吗?

只需签出API文档: http://apidocs.mailchimp.com/api/how-to/basic-subscribe.php

Just checkout the API-docs: http://apidocs.mailchimp.com/api/how-to/basic-subscribe.php

如果由于某种原因您不想阅读文档而只想查看代码(请不要这样做,但是,我知道什么):单击此处列出的示例: http://apidocs.mailchimp.com/api/downloads/#examples

And if for some reason you do not want to read docs but just want to see code (please, don't do this, but hey, what do I know): click on the exmples listed here: http://apidocs.mailchimp.com/api/downloads/#examples

从示例代码开始,如果它不能完全完成所有工作,则可以在文档中轻松找到它.

Start with the example code and if it doesn't do exactly everything, you can find it at the docs easily enough.

这篇关于mailchimp php集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆