Hello everyone,
I am trying to setup a connection with Mercadolibre using make’s http OAuth 2.0 Connection and Mercadolibre documentation but something is missing and didn’t work.
I have already authorized the application via web and postman procedure and I have already exchanged it for a token.
what I used this lisd and what worked for me was
https://auth.mercadolibre.cl/authorization?response_type=code&client_id=XXXXXXXXXXXXXXX&redirect_uri=https://www.integromat.com/oauth/cb/oauth2
and this returns a code
https://YOUR_REDIRECT_URI?code=$SERVER_GENERATED_AUTHORIZATION_CODE
Then with postman sent this to change code with a token,
curl -X POST
-H ‘accept: application/json’
-H ‘content-type: application/x-www-form-urlencoded’
‘https://api.mercadolibre.com/oauth/token’
-d ‘grant_type=authorization_code’
-d ‘client_id=$APP_ID’
-d ‘client_secret=$SECRET_KEY’
-d ‘code=$SERVER_GENERATED_AUTHORIZATION_CODE’
-d ‘redirect_uri=$REDIRECT_URI’ \
and this is for refresh the token
curl -X POST
-H ‘accept: application/json’
-H ‘content-type: application/x-www-form-urlencoded’
‘https://api.mercadolibre.com/oauth/token’
-d ‘grant_type=refresh_token’
-d ‘client_id=$APP_ID’
-d ‘client_secret=$SECRET_KEY’
-d ‘refresh_token=$REFRESH_TOKEN’
So, I used this to setup the Oaut module but didn’t work:
Oauth 2.0 Connection
Flow type: Authorization Code
Authorize URI: https://auth.mercadolibre.cl/authorization
Token URI: https://api.mercadolibre.com/oauth/token
Scope separator: Comma
Client ID: my ID
Client secret: my secret
Refresh token parameters
Key: grant_type Value: authorization_code
Key: redirect_uri Value: https://www.integromat.com/oauth/cb/oauth2
any idea what might be missing?
regards