[英]How can I get all the members of Given group Id of Given List Id from MailChimp API?
I am try to fetch the all list of members subscribe to given list for given Group from MailChip API. 我尝试从MailChip API中获取订阅给定组的给定列表的所有成员列表。
I have two list in MailChimp. 我在MailChimp中有两个列表。
1) Master List 1)主清单
Groups: Group1, Group2
2) Test List 2)测试清单
All user will be subscribe to each Group1, Group2 for List "Master List" Now I want to fetch all the members of "Master List" Who has subscribe for "Group1" ONLY. 所有用户将订阅列表“主列表”的每个Group1,Group2现在,我想获取仅订阅“ Group1”的“主列表”的所有成员。
So, Which API Method I can use to fetch all? 那么,我可以使用哪种API方法来提取所有内容?
My Code: 我的代码:
$result = $mailChimp->listMembers( $listid, $status );
This will give me all the data from given list but I want to get specific Groups data any idea how can i get? 这将为我提供给定列表中的所有数据,但我想获取特定的网上论坛数据,我该如何获取?
API Detail: listMembers – v1.3 API详细信息:listMembers – v1.3
listMembers(string apikey, string id, string status, string since, int start, int limit, string sort_dir)
Get all of the list members for a list that are of a particular status. 获取具有特定状态的列表的所有列表成员。 Are you trying to get a dump including lots of merge data or specific members of a list? 您是否要获取包含大量合并数据或列表中特定成员的转储?
this might solve your problem. 这可能会解决您的问题。 If your API wrapper does not contain this function, add it as follows: 如果您的API包装器不包含此函数,请按如下所示添加它:
function searchMembers(string query, string id, int offset=0) {
$params = array();
$params["query"] = $query;
$params["id"] = $id;
$params["offset"] = $offset;
return $this->callServer("searchMembers", $params);
}
Not sure this will solve your problem or not, but this will surly get you started... 不确定这是否会解决您的问题,但这无疑会帮助您入门...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.