• 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

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...
Sign in to follow this