• 1
smatiz

Listar todos los productos - The caller is not authorized to access this resource

Question


Necesito listar todos los productos, sin embargo me esta devolviendo un error en donde dice que no esta autorizado para usar este recurso. Que puede pasar?

 

Aclaro que el usuario con el cual obtengo el token tiene todos los permisos de publicación.

Mensaje:

{"message":"The caller is not authorized to access this resource","error":"forbidden","status":403,"cause":[]}

 

Programa en JAVA:

            Meli m = new Meli("xxxxxxxxxx", "yyyyyyyyyyyyyyy","zzzzzzzzzzzzzzzzz","wwwwwwwwwwwwww");             
            FluentStringsMap params = new FluentStringsMap();
            params.add("access_token", m.getAccessToken());
           Response r = m.get("/users/{id_user}/items/search",params); 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 9/21/2018 at 5:37 PM, smendozab said:

Hola, aquí tengo el mismo problema, alguna solución?


{
  "message": "The caller is not authorized to access this resource",
  "error": "forbidden",
  "status": 403,
  "cause": [
  ]
}

saludos!

Valida que el token no este vencido.Te recomiendo para obtener los primeros 100 uses el limite:
$params = array( 'access_token' => {MI-TOKEN}, 'limit' => '100', 'offset' => 0 );
Saludos.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...