MailChimp.com中API调用的服务器前缀是什么?

发布于 2025-02-10 01:34:31 字数 165 浏览 6 评论 0原文

mailchimp.setConfig({
  apiKey: "YOUR_API_KEY",
  server: "YOUR_SERVER_PREFIX",
});
mailchimp.setConfig({
  apiKey: "YOUR_API_KEY",
  server: "YOUR_SERVER_PREFIX",
});

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

深海夜未眠 2025-02-17 01:34:31

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/"; the us19 part is the server prefix. Note that your specific value may be different.

最偏执的依靠 2025-02-17 01:34:31

服务器前缀是端点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.

审判长 2025-02-17 01:34:31

为了添加其他注释,这也是API密钥的最后数字。

To add to the other comments, it's also the last digits of your API KEY.

在你怀里撒娇 2025-02-17 01:34:31

您可以从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);

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文