• 0
Sign in to follow this  
Agustin M.

Recurso /users/{ID}/items/search?

Question

Estoy intentando consumir el recurso /users/{ID}/items/search? desde PHP con el SDK, solo que cuando ejecuto la acción me devuelve:

array(2) { ["body"]=> array(4) { ["message"]=> string(52) "The caller is not authorized to access this resource" ["error"]=> string(9) "forbidden" ["status"]=> int(403) ["cause"]=> array(0) { } } ["httpCode"]=> int(403) }

Lo extraño es que el mismo recurso, desde el SDK de .NET me devuelve sin problemas las publicaciones.

En ambos casos ejecuto la consulta con el mismo ID con el que autorizo el access_token.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

El error estaba, simplemente, en que estaba enviando search? y el signo de pregunta no tenía que ir, me di cuenta revisando bien el código.

$result = $meli->get('/users/{ID}/items/search?', array('access_token' => $user['body']->access_token)); 

 

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, rodrigojob said:

tire o interrogação e no array de usuario adicione o seller

 

Rodrigo Obrigado, o problema era o ponto de interrogação

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