MailChimp.com中API调用的服务器前缀是什么?
mailchimp.setConfig({
apiKey: "YOUR_API_KEY",
server: "YOUR_SERVER_PREFIX",
});
mailchimp.setConfig({
apiKey: "YOUR_API_KEY",
server: "YOUR_SERVER_PREFIX",
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
documentation :
来自
mailChimp.setConfig
中使用的服务器参数的值,登录您的MailChimp帐户,并查看浏览器中的URL。您会看到“ https://us19.admin.mailchimp.com/”之类的东西;US19
部分是服务器前缀。请注意,您的特定价值可能不同。From the documentation:
To find the value for the server parameter used in
mailchimp.setConfig
, log into your Mailchimp account and look at the URL in your browser. You’ll see something like "https://us19.admin.mailchimp.com/"; theus19
part is the server prefix. Note that your specific value may be different.服务器前缀是端点URL的起始部分。例如,如果使用MailChimp API,则可以通过单击此URL来检查服务器前缀: https:https:// https:/// US19.Admin.mailchimp.com/ 。
服务器前缀将自动更改为服务器前缀。对我来说,它是
US18
。希望这会有所帮助。
The server prefix is the starting part of the endpoint URL. For example, if you are using MailChimp API, you can check your server prefix by clicking this url: https://us19.admin.mailchimp.com/.
The server prefix will change to your server prefix automatically. For me it is
us18
.Hope this helps.
为了添加其他注释,这也是API密钥的最后数字。
To add to the other comments, it's also the last digits of your API KEY.
您可以从API密钥中找到Server_prefix。要从API键查看Server_prefix,您可以像以下内容一样编写一个代码(PHP)。
$ serverprefix = substr($ apikey,strpos($ apikey,' - ')+1);
You can find the SERVER_PREFIX from your API KEY. To see the SERVER_PREFIX from the API KEY, you can write a single code (PHP) like the following.
$serverPrefix = substr($apiKey,strpos($apiKey,'-')+1);