• 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

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!

Share this post


Link to post
Share on other sites
  • 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

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