Javascript + MailChimp API subscribe

后端 未结 3 1537
误落风尘
误落风尘 2021-02-02 01:30

When making this request:

// Subscribe a new account holder to a MailChimp list
function subscribeSomeoneToMailChimpList()
{
  var options =
  {
    \"apikey\":          


        
3条回答
  •  感情败类
    2021-02-02 02:10

    After further research & tinkering, I was able to solve this:

    https://.api.mailchimp.com/2.0/lists/subscribe.json?apikey=&id=&email[email]=test@test.com&merge_vars[FNAME]=John&merge_vars[LNAME]=Doe&double_optin=false&send_welcome=false
    

    Where should be replaced with the portion after the dash in your API Key. e.g. "us1", "us2", "uk1", etc.

提交回复
热议问题