您可以在不使用API​​的情况下获取MailChimp兴趣组ID吗? [英] Can you get a MailChimp interest group ID without using the API?

查看:68
本文介绍了您可以在不使用API​​的情况下获取MailChimp兴趣组ID吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用MailChimp API,要将成员添加到具有特定兴趣组的列表中,您既需要该列表的ID,也需要该兴趣组的ID.

With the MailChimp API, to add a member to a list with a specific interest group, you need both that list's ID and the interest group's ID.

要获得这两个ID,可以查询它们的API,或者在列表ID的情况下,可以在MailChimp接口输出的表单代码中找到它.无法以相同的方式找到兴趣组ID:表单代码仅使用整数ID来引用兴趣组,而API则不接受.

To get both those IDs, you can either query the API for them, or in the case of the list ID you can find it in the form code that the MailChimp interface outputs. The interest group ID can not be found in the same way: the form code simply users integer IDs to reference the interest groups, which are not accepted by the API.

我的问题:除了首先查询API之外,还有什么方法可以获取兴趣组ID?即在MailChimp界面中的某处?

上下文:我正在为Wordpress网站构建一个简单的加载项,其中包括带有兴趣组的MailChimp注册表单.在网站管理员中设置参数,包括API密钥和列表ID.如果可能的话,我希望避免建立查询机制来获取,列出和选择兴趣组,而只是让管理员输入ID.

Context: I'm building a simple add-on to a Wordpress website that includes a MailChimp signup form with interest groups. Parameters are set in the website admin including API key and list ID. If possible, I'd like to avoid having to build in a query mechanism to get, list and select the interest groups and rather just have the administrator enter the IDs.

推荐答案

您可以在Mailchimp Developer网站(位于 developer.mailchimp.com

You can use the Playgrounds in the Mailchimp Developer site located at developer.mailchimp.com

Playground是API的UI,您可以使用Subresources向下钻取->列表->兴趣类别->兴趣.

The Playground is a UI into the API and you can drill down using the Subresources into -> lists -> interest-categories -> interests.

然后选择响应"视图,它将显示包含您要查找的ID的响应的有效负载.

Then choose the Response view and it will show the payload of the response that contains the id's you are looking for.

这篇关于您可以在不使用API​​的情况下获取MailChimp兴趣组ID吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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