DSISA

Members
  • Content Count

    2
  • Joined

  • Last visited

About DSISA

  • Rank
    Newbie

Profile Information

  • Location
    Buenos Aires
  1. Buenas gente, En VB.NET necesito pasar el array de imagenes, para crear una publicacion, tengo el siguiente código: Dim r As IRestResponse = ml1.Post("/items", ps, New With {Key .title = "Anteojos Ray Ban Wayfare", Key .category_id = "MLA3530", Key .price = 20, Key .currency_id = "ARS", _ Key .available_quantity = 1, Key .condition = "new", Key .listing_type_id = "free", _ Key .description = "prueba", Key .video_id = "null", Key .warranty = "12", _ Key .pictures = " {source='http://upload.wikimedia.org/wikipedia/commons/f/fd/Ray_Ban_Original_Wayfarer.jpg'}"}) pero me devuelve error en "pictures".
  2. 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?????.