• 0
rodrigojob

predict categoria

Question

Olá,

 

tem uma coisa estranha em consulta de categoria, para que funcione deve ter 2 arrays, veja:

 

$categoria = $meli->post("/sites/MLB/category_predictor/predict", array(array("title" =>"kindle")));

 

se fizer com um array só dá o erro:

Array ( [body] => stdClass Object ( [cause] => Array ( [0] => Invalid data type. Only array of objects is allowed. ) [error] => invalid_post [message] => Invalid POST [status] => 400 ) [httpCode] => 200 )

 

Isto é pau de programação.

 

Funciona normalmente via navegador com:

https://api.mercadolibre.com/sites/MLB/category_predictor/predict?title=kindle

 

Até mais

Rodrigo

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

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