我想通过"时事通讯","用户"和"会员"对我的用户进行分组,并通过API发送电子邮件,我该如何做到这一点:http://apidocs.mailchimp.com/api/1.3/index. PHP
将用户添加到组似乎相当直接,但我似乎无法找到如何发送给他们.既没有createCampaign也没有campaignSendNow任何团体提及或如何发送给他们.
目前我通过3个单独的列表来处理这个问题.
Bre*_*ody 12
您需要使用segment_optscampaignCreate()方法中的参数来选择要发送到的组(即段).
使用该segment_opts参数可以选择特定组.像这样的东西:
// Assuming your interest group has an ID of 1.
$conditions = array();
$conditions[] = array('field'=>'interests-1', 'op'=>'one', 'value'=>'Newsletter');
$segment_opts = array('match'=>'all', 'conditions'=>$conditions);
$retval = $api->campaignCreate($type, $opts, $content, $segment_opts);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2883 次 |
| 最近记录: |