I'm having trouble with Mailchimp token API. I've worked with OAuth a lot, but it seems something is not wokring with this API. Providing I've obtained authorization code from callback, the request to get token is like this:
URL: https://login.mailchimp.com/oauth2/token
Method: POST
Bodygrant_type
: "authorization_code"client_id
: client_idclient_secret
: client_secretredirect_uri
: redirect_uricode
: code
client_id, client_secret and redirect_uri are exactly from Mailchimp Registered App configuration. I basically copy paste those 3 values to ensure valid information. And the response is
Bad request 400
{
"error": "invalid_client"
}
I tried to send from server, from curl, from Postman. Still the same error. Can you guys help?