vondip
vondip

Reputation: 14039

Mailchimp rest api

I've started working with MailChimp's api. I've tried connecting to their servers using a rest call based on a sample code I've found somewhere:

http://api.mailchimp.com/1.3/?output=json&method=campaignTemplateContent&apikey=MyKey-us2&cid=myId

Unfortounatly I keep getting this error:

{"error":"Invalid Mailchimp API Key: **MyKey**-us2 . You are accessing the wrong datacenter - your client library may not properly support our datacenter mapping scheme.","code":104}

I can't find any other code samples working on MailChimp's rest api. What am I doing wrong here? Where are the code samples?

Thanks

Upvotes: 1

Views: 2385

Answers (1)

Waynn Lue
Waynn Lue

Reputation: 11385

Your URL is incorrect. You should be hitting http://us2.api.mailchimp.com instead of the one you're using.

Upvotes: 3

Related Questions