1

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

2
  • if you solved the error kindly give me solution too? here is my problem : stackoverflow.com/questions/33787248/… Commented Nov 18, 2015 at 18:35
  • I'm sorry it's been quite some time ago, I not longer remember the issue nor the solution
    – vondip
    Commented Nov 19, 2015 at 11:56

1 Answer 1

3

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.