Skip to content Skip to sidebar Skip to footer

Access Mailchimp Api 3.0 (get)

I'm trying to make a GET request through jQuery to the Mailchimp API. It seems though my custom header is not correctly set as I get a Your request did not include an API key. erro

Solution 1:

You need to add the key via Basic Auth like and as far I am aware off, You can't query it from front-end, it must be on the back-end.

Find an example in NodeJS:

headers: {
    'Authorization': 'Basic ' + newBuffer(`anything:${MailChimpKey}`).toString('base64');
}

Solution 2:

MailChimp not allowed to direct access with ajax. Once make Server WebRequest. It will surely work.

Post a Comment for "Access Mailchimp Api 3.0 (get)"