• 0
Sign in to follow this  
Josinei2

Problema com Refresh_Token

Question

Bom dia,

Estou tendo um problema onde não consigo executar o "refresh_token" da api de php.

Estou realizando o seguinte.

         $meli = new Meli($connection->idClient, $connection->tokenSecret,$access_token,$refresh_token);
         $return = $meli->refreshAccessToken();

Aonde tenho como resposta o seguinte array: 

Array
(
    [body] => stdClass Object
(
              [message] => Wrong number of parameters
              [error] => invalid_request
              [status] => 400
              [cause] => Array
(
)

)

Minha aplicação possue todos os tipos de acesso "read,write e offline_access".

Oque eu poderia estar fazendo de errado?

Obrigado, Josinei.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Desculpe, esse foi um teste alterando uns parametros que executei, o erro é o seguinte

Array
(
[body] => stdClass Object
(
[message] => User has no valid scopes for application
[error] => unauthorized
[status] => 401
[cause] => Array
(
)

)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this