• 0
Sign in to follow this  
leandrotyl

Fallo en test_user

Question

Hola gente,

 

 

No puedo crear de ninguna manera un usuario test:

 

Array
(
[body] => stdClass Object
(
[message] => Invalid siteId
[error] => bad_request
[status] => 400
[cause] => Array
(
)

)

[httpCode] => 400
)

 

 

Probe desde CURL (commando line), Postman y desde el SDK de php:

 

 

$meli = new Meli('clienteid-xxxxxxxxxx', 'pasword-xxxxxxx', $_SESSION['access_token'], $_SESSION['refresh_token']);
$params = array('access_token'=>$_SESSION['access_token'],'site_id'=>"MLA");
$result = $meli->post('/users/test_user',null, $params);

 

 

Array
(
[body] => stdClass Object
(
[message] => Invalid siteId
[error] => bad_request
[status] => 400
[cause] => Array
(
)

)

[httpCode] => 400
)

 

 

Alguien me puede ayudar?? necesito hacer varias pruebas....

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

para sabermos o que gerou o erro é necessário que você mostre os dados enviados

 

Mas as mensagem de erro autoexplicativa. SEMPRE!

falta  siteid, insira-o.

o que é o siteid?

MLB=Brasil

MLA=argentina

MLV=venezuela

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