• 0
Sign in to follow this  

Crear producto API vb.net


Buenas gente, consulta estube buscando repuestas en el foro y no pude encontrar.

Tengo el siguiente código para crear un producto de prueba

   Dim body As New JObject(New JProperty("title", "Prueba"), _
                                        New JProperty("category_id", "MLA1496"), _
                                        New JProperty("price", 20), _
                                        New JProperty("currency_id", "ARS"), _
                                        New JProperty("available_quantity", 1), _
                                        New JProperty("buying_mode", "buy_it_now"), _
                                        New JProperty("listing_type_id", "bronze"), _
                                        New JProperty("condition", "new"), _
                                        New JProperty("description", "prueba"), _
                                        New JProperty("video_id", "null"), _
                                        New JProperty("tags", "null"), _
                                        New JProperty("warranty", "12"), _
                                        New JProperty("pictures", "[{source='http://upload.wikimedia.org/wikipedia/commons/f/fd/Ray_Ban_Original_Wayfarer.jpg'},              {source='http://en.wikipedia.org/wiki/File:Teashades.gif'}]"))

        Dim r As IRestResponse = ml1.Post("/items", ps, JsonConvert.SerializeObject(body))

y obtengo este resultado:

{"message":"body.invalid","error":"A body is expected. (B)","status":400,"cause":[]}

Que estoy haciendo mal?????.

Sin título.png

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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