zhovo

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. obtengo esto: Array ( [access_token] => [expires_in] => 1466053768 [refresh_token] => ) El codigo es el que viene en el ejemplo. $meli = new Meli('-------', '------------------', $_SESSION['access_token'], $_SESSION['refresh_token']); if($_GET['code'] || $_SESSION['access_token']) { // If code exist and session is empty if($_GET['code'] && !($_SESSION['access_token'])) { // If the code was in get parameter we authorize $user = $meli->authorize($_GET['code'], 'http://localhost/PHPSDK/examples/example_login.php'); // Now we create the sessions with the authenticated user $_SESSION['access_token'] = $user['body']->access_token; $_SESSION['expires_in'] = time() + $user['body']->expires_in; $_SESSION['refresh_token'] = $user['body']->refresh_token; } } saco los datos de la aplicacion asi: App ID:---------- Secret --------- Name:nuevo Short Name:nuevo Description:nuevo Authentication and Security Redirect URI:http://localhost Authorized Javascript Origins: Scopes: offline_access write