今天,我必须学习每个nondescript参数的含义,以便为通过Mandrill发送的每封电子邮件生成URL.要发现它们的含义并非易事,但以下是我想出的含义以及如何找出它们的含义.
Today I had to learn what each nondescript parameter means so that I could generate URLs for each email I send through Mandrill. It wasn't that easy to discover their meaning, but here are the one's I've come up with and how I found out what they are.
http://xxxxx.us2.list-manage.com/取消订阅?u = 87f537bccxx35e53a1890e0d9&id = 40dcxx6cd6&e = c4aaxx1dd6&c = 9a6xx11963
URL格式:
- Protocol can be http or https.
- Your username comes next
- In the example, us2 is the MailChimp datacenter where your account resides. That's different for each account. (https://apidocs.mailchimp.com/api/2.0/) It's good practice to specify a DC even though the documentation says that it isn't required. Specifying it will cut down on unnecessary latency.
- list-manage[n].com can work with or without the number at the end of the domain, or it can have a 1 or a 2. Changing that doesn't appear to matter, but I think it has something to do with their load balancing.
- /unsubscribe can also be /subscribe or /profile (The latter appears to be dependent on the "e" parameter. (See below) When you don't specify it, it states, "List member profiles cannot be updated from test campaigns or archive pages" and if you specify an invalid value, you get an error page.
- u Is a unique identifier for your account. Every list on your account uses it. (See http://kb.mailchimp.com/lists/signup-forms/find-the-unsubscribe-link-for-your-list for how you can view the various URLs for your account.)
- id is your list ID
- e is the euid as documented on https://apidocs.mailchimp.com/api/2.0/lists/subscribe.php
- c I haven't seen this one yet, but my guess is that it's the campaign ID.
此外,当您希望预填写订阅和取消订阅表单时,可以使用以下GET参数.
Also, when you wish to prefill subscribe and unsubscribe forms, you can use the following GET params.
- EMAIL允许您输入订阅者的电子邮件
- MERGE1允许您输入订户的名字
- MERGE2允许您输入订户的姓氏