【问题标题】:How to store birthday through mailchimp API?如何通过 mailchimp API 存储生日?
【发布时间】:2012-10-28 17:13:38
【问题描述】:

我通过 this library 在 Codeigniter 应用程序中使用 mailchimp 1.3。

我有这段代码:

$birthday = date('m/d', strtotime('1984-04-29');
echo $birthday;
$merge_vars = array(
'FNAME'=> $profile_info['name'], 
'LNAME'=> $profile_info['lastname'], 
'birthday' => $birthday,
'GROUPINGS' => array(array('name' => $this->group_name, 'groups' => $this->group1))
);

$this->mail_chimp->listSubscribe($this->list_id, $email, $merge_vars);

订阅有效,在 mailchimp 的管理面板中我可以看到用户名和姓氏,但没有生日。

在 api 文档中它说它应该被格式化为 MM/DD 并回显 生日我证实这是正确的。 有什么建议吗?

【问题讨论】:

    标签: mailchimp


    【解决方案1】:

    好的,我解决了。 我必须在列表设置中为生日添加一个字段,如下所述:

    http://kb.mailchimp.com/article/how-do-i-create-and-send-automatic-birthday-campaigns

    【讨论】:

      猜你喜欢
      • 2021-09-19
      • 2013-06-18
      • 1970-01-01
      • 2015-03-27
      • 2018-05-08
      • 2023-03-22
      • 2013-08-27
      • 1970-01-01
      • 2015-10-21
      相关资源
      最近更新 更多