Question

quando tento fazer o login para obter o accessToken a pagina retorna apenas:

Array
(
[access_token] =>
[expires_in] => 1430845033
[refresh_token] =>
)

Aguem pode me ajudar?

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Estou tendo o mesmo problema e não estou conseguindo resolver. Seguem as etapas:

1) Baixei o SDK numa pasta do meu servidor local;

2) Criei uma aplicação no APP Manager e coloquei no campo Redirect URI: http://localhost/ML/examples/example_login.php. Obtive APP ID e o Secret Key;

3) Alterei o example_login.php, colocando o APP ID e o Secret Key.

4) Alterei o meli.php, inserindo na linha 23 CURLOPT_SSLVERSION => 2,

 

O problema continua. O que estou fazendo de errado?

Share this post


Link to post
Share on other sites
  • 0

the problem is the CRUL options 

public static $CURL_OPTS = array(   CURLOPT_USERAGENT => "MELI-PHP-SDK-1.0.0",   CURLOPT_SSL_VERIFYPEER => true,   CURLOPT_CONNECTTIMEOUT => 10,   CURLOPT_RETURNTRANSFER => 1,  

CURLOPT_TIMEOUT => 60,

CURLOPT_SSLVERSION => 2,

  );

 

 

this works for me, can you make a try catch and get the error with more details?

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