[Answer]-MailChimp OAuth2: Invalid Mailchimp API Key – wrong datacenter – library may not support datacenter mapping scheme

1πŸ‘

βœ…

My workflow is correct, except that I only need to do it once. I can store the access_token and the datacenter (key–dc) in my database and use it for future calls.

Although I still don’t know exactly what was causing my problem, I now know that it was not related to this workflow. It’s correct.

πŸ‘€Seth

0πŸ‘

I think the Endpoint in the client library is β€œhttp://.api.mailchimp.com” so you need to send the token as only access token as per this part from documentation:

api_endpoint – this is http://.api.mailchimp.com. If you don’t
have a datacenter aware wrapper, use this api endpoint and the
access_token as your API Key.

Leave a comment