Perguntas e Respostas
Recurso | Descrição | Exemplo |
---|---|---|
/questions/search?item={Item_id} | Busca uma pergunta feita nos items do usuário. | GET
Voltar
X
Obter perguntas por ID do item$ curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/questions/search?item_id=MLA608007087 Resposta{ "total": 1, "limit": 50, "questions": [ { "date_created": "2016-02-29T11:09:30.000-04:00", "item_id": "MLA608007087", "seller_id": 202593498, "status": "UNANSWERED", "text": "Test question.", "id": 3957002293, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 207119838, "answered_questions": 0 } } ], "filters": { "limit": 50, "offset": 0, "is_admin": false, "sorts": [ ], "caller": 202593498, "item": "MLA608007087" }, "available_filters": [ { "id": "from", "name": "From user id", "type": "number" }, { "id": "seller", "name": "Seller id", "type": "number" }, { "id": "totalDivisions", "name": "total divisions", "type": "number" }, { "id": "division", "name": "Division", "type": "number" }, { "id": "status", "name": "Status", "type": "text", "values": [ "ANSWERED", "BANNED", "CLOSED_UNANSWERED", "DELETED", "DISABLED", "UNANSWERED", "UNDER_REVIEW" ] } ], "available_sorts": [ "item_id", "from_id", "date_created", "seller_id" ] }Ler más. |
/questions | Fazer perguntas sobre os items de outros usuários. | POST
Voltar
X
Realizar uma pergunta.$ curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' -H "Content-Type: application/json" -d '{ "text":"Test question.", "item_id":"MLA608007087" }' https://api.mercadolibre.com/questions Resposta{"id":3957150025,"answer":null,"date_created":"2016-02-29T11:19:42.957-04:00","item_id":"MLA608007087","seller_id":202593498,"status":"UNANSWERED","text":"Test question.","from":{"id":207119838}}Ler mais. |
/answers | Responder às perguntas realizadas em seus items. | POST
Voltar
X
Responder uma pergunta.$ curl -X POST -H 'Authorization: Bearer $ACCESS_TOKEN' -H ""Content-Type: application/json"" -d '{ question_id: 3957150025, text:""Test answer..."" }' https://api.mercadolibre.com/answers Resposta{"id":3957150025,"answer":{"date_created":"2016-02-29T11:21:27.831-04:00","status":"ACTIVE","text":"Test answer..."},"date_created":"2016-02-29T11:19:42.000-04:00","deleted_from_listing":false,"hold":false,"item_id":"MLA608007087","seller_id":202593498,"status":"ANSWERED","text":"Test question.","from":{"id":207119838,"answered_questions":0}}Ler mais. |
/questions/{Question_id} | Obter informação de uma pergunta especifica de um ID. | GET
Voltar
X
Obter detalhes da pergunta.$ curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/questions/3957150025 Respuesta{ "id": 3957150025, "answer": { "date_created": "2016-02-29T11:21:27.000-04:00", "status": "ACTIVE", "text": "Test answer..." }, "date_created": "2016-02-29T11:19:42.000-04:00", "deleted_from_listing": false, "hold": false, "item_id": "MLA608007087", "seller_id": 202593498, "status": "ANSWERED", "text": "Test question.", "from": { "id": 207119838, "answered_questions": 1 } }Ler mais. |
/users/{Seller_id}/questions_blacklist/$Buyerid | Gerenciar perguntas da blacklist. | GET GET POST DELETE
Go back
X
Testar as perguntas da blacklist do usuário (Com limit e offset).curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' http://api.mercadolibre.com/users/$SELLER_ID/questions_blacklist Resposta (Caso ter usuários bloqueados){ "paging": { "total": 5, "limit": 50, "offset": 0 }, "users": [{ "id": 70927648 }, { "id": 170577643 }, { "id": 82411799 }, { "id": 158470042 }, { "id": 194938540 }] } Resposta (Caso não ter usuários bloqueados){ "paging": { "total": 0, "limit": 50, "offset": 0 }, "users": [] } Go back
X
Testar as perguntas da blacklist do usuário (Sem offset e limit)curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN'"http://api.mercadolibre.com/users/${seller_id}/questions_blacklist?limit=1&offset=2" Resposta (Caso ter usuários bloqueados){ "paging": { "total": 5, "limit": 50, "offset": 0 }, "users": [{ "id": 70927648 }, { "id": 170577643 }, { "id": 82411799 }, { "id": 158470042 }, { "id": 194938540 }] } Resposta (Caso não ter usuários bloqueados){ "paging": { "total": 0, "limit": 50, "offset": 0 }, "users": [] }Ler mais. |
/my/received_questions/search | Perguntas recebidas por usuário. | GET
Voltar
X
Obter perguntas feitas em seus items.$ curl -X GET -H 'Authorization: Bearer $ACCESS_TOKEN' https://api.mercadolibre.com/my/received_questions/search Resposta{ "total": 16, "limit": 50, "questions": [ { "date_created": "2016-01-11T14:22:34.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola, tenes disponible en color crema? Gracias.", "id": 3882522692, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 172352930, "answered_questions": 0 } }, { "date_created": "2016-01-13T15:08:37.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola tenes esta pollera el color crema?", "id": 3886086968, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 154429630, "answered_questions": 0 } }, { "date_created": "2016-01-14T18:20:55.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola tenes la pollera en color crema?", "id": 3888086532, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 154429630, "answered_questions": 0 } }, { "date_created": "2016-01-14T18:22:07.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola la pollera la vendes?", "id": 3888087208, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 154429630, "answered_questions": 0 } }, { "date_created": "2016-01-17T03:17:40.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Que colores tenes", "id": 3891187956, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 152876895, "answered_questions": 0 } }, { "date_created": "2016-01-19T02:15:01.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "hola cual es el pecio es parecida a la fotos?", "id": 3894498460, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 194164736, "answered_questions": 0 } }, { "date_created": "2016-01-19T02:15:34.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "hola te las oferto por 90 no por 4 pesos esta bien?slds", "id": 3894498570, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 194164736, "answered_questions": 0 } }, { "date_created": "2016-01-20T23:18:37.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "hola dice iem esta en venta a ese precio o no slds?", "id": 3897965991, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 194164736, "answered_questions": 0 } }, { "date_created": "2016-01-22T09:02:22.000-04:00", "item_id": "MLA599121050", "seller_id": 202593498, "status": "UNANSWERED", "text": "question test", "id": 3899830946, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 203846492, "answered_questions": 0 } }, { "date_created": "2016-01-22T09:09:46.000-04:00", "item_id": "MLA601051627", "seller_id": 202593498, "status": "UNANSWERED", "text": "testing", "id": 3899836443, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 203846492, "answered_questions": 0 } }, { "date_created": "2016-01-22T15:31:33.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "testing", "id": 3900524172, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 204022883, "answered_questions": 0 } }, { "date_created": "2016-01-22T15:33:39.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "test...", "id": 3900450285, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 204022883, "answered_questions": 0 } }, { "date_created": "2016-01-22T15:36:32.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "test", "id": 3900453645, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 204023121, "answered_questions": 0 } }, { "date_created": "2016-01-27T18:12:11.000-04:00", "item_id": "MLA598903377", "seller_id": 202593498, "status": "UNANSWERED", "text": "Hola buenas tardes! En que colores te quedan?", "id": 3908295700, "deleted_from_listing": true, "hold": false, "answer": null, "from": { "id": 118961234, "answered_questions": 0 } }, { "date_created": "2016-02-02T10:12:06.000-04:00", "item_id": "MLA599099879", "seller_id": 202593498, "status": "UNANSWERED", "text": "sapeeee", "id": 3916543404, "deleted_from_listing": false, "hold": false, "answer": null, "from": { "id": 202506298, "answered_questions": 0 } }, { "date_created": "2016-02-29T11:19:42.000-04:00", "item_id": "MLA608007087", "seller_id": 202593498, "status": "ANSWERED", "text": "Test question.", "id": 3957150025, "deleted_from_listing": false, "hold": false, "answer": { "text": "Test answer...", "status": "ACTIVE", "date_created": "2016-02-29T11:21:27.000-04:00" }, "from": { "id": 207119838, "answered_questions": 1 } } ], "filters": { "limit": 50, "offset": 0, "is_admin": false, "sorts": [ ], "caller": 202593498, "seller": "202593498" }, "available_filters": [ { "id": "item", "name": "Item", "type": "text" }, { "id": "from", "name": "From user id", "type": "number" }, { "id": "totalDivisions", "name": "total divisions", "type": "number" }, { "id": "division", "name": "Division", "type": "number" }, { "id": "status", "name": "Status", "type": "text", "values": [ "ANSWERED", "BANNED", "CLOSED_UNANSWERED", "DELETED", "DISABLED", "UNANSWERED", "UNDER_REVIEW" ] } ], "available_sorts": [ "item_id", "from_id", "date_created", "seller_id" ] }Ler mais. |
Seguinte: Pedidos e opiniões.
Faça login ou registre-se para receber as últimas notícias sobre nossa API