More Related Content Similar to API's overview - MeliDevConf 2013 - SP Similar to API's overview - MeliDevConf 2013 - SP (20) More from melidevelopers (20) API's overview - MeliDevConf 2013 - SP3. APIs OVERVIEW
O QUE POSSO FAZER COM AS APIs DO MERCADOLIVRE?
MercadoLivre Developers Conference
7. APIs OVERVIEW
POST /items
➔ Título e Descrição
➔ Categoria
➔ Quantidade e Preço
➔ Nível de exposição
➔ Fotos
MercadoLivre Developers Conference
8. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
9. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
10. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
11. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
12. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
13. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
14. {
"title": "Playstation 3" ,
"subtitle": "Some subtitle here" ,
"category_id": "MLB5529",
"price": 10,
"currency_id": "BRL",
"available_quantity" : 1,
"buying_mode": "buy_it_now",
"listing_type_id" : "bronze",
"condition": "new",
"description": "Item:, <strong> Incrível Playstation 3 </strong> vem com 2
controle e 3 ótimos jogos" ,
"video_id": "YOUTUBE_ID_HERE" ,
"warranty": "12 months",
"pictures": [
{ "source": http://upload.wikimedia.org//fd/Ray_Ban_Original_Wayfarer.jpg "},
{ "source": "http://en.wikipedia.org/wiki/File:Teashades.gif" }
]
}
APIs OVERVIEW
POST /items
MercadoLivre Developers Conference
19. APIs OVERVIEW
POST /items
MELIAPP POST
201 Created MELIAPP
{
"id": "MLB502951323",
"site_id": "MLB",
"title": "Playstation 3",
"sold_quantity": 0,
"permalink": http://produto.mercadolivre.com.br/MLB-502951323....
…
}
MercadoLivre Developers Conference
20. APIs OVERVIEW
POST /items
MELIAPP POST
201 Created MELIAPP
{
"id": "MLB502951323",
"site_id": "MLB",
"title": "Playstation 3",
"sold_quantity": 0,
"permalink": http://produto.mercadolivre.com.br/MLB-502951323....
…
}
MercadoLivre Developers Conference
29. APIs OVERVIEW
Publicar POST /items
Modificar PUT /items/MLB502951323
Republicar POST /items/MLB502951323/relist
MercadoLivre Developers Conference
30. APIs OVERVIEW
Publicar POST /items
Modificar PUT /items/MLB502951323
Republicar POST /items/MLB502951323/relist
MercadoLivre Developers Conference
41. APIs OVERVIEW
Notificação
MELIAPP POST
200 OK MELIAPP
{
"user_id": 1234,
"resource": "/questions/123123123",
"topic": "questions",
"received": "2013-08-09T14:59:15+00:00",
"sent": "2013-08-09T14:59:15+00:00"
}
MercadoLivre Developers Conference
42. APIs OVERVIEW
GET /questions/123123123
{
"id": 123123123,
"answer": null,
"date_created": "2013-08-10T13:43:13.000-04:00",
"item_id": "MLB502951323",
"seller_id": xxxxxxx,
"status": "UNANSWERED",
"text": "Olá amigo, tem na cor preta?"
"from": { "id": xxxxxxx,
"answered_questions": 0 }
}
MercadoLivre Developers Conference
43. APIs OVERVIEW
GET /questions/123123123
{
"id": 123123123,
"answer": null,
"date_created": "2013-08-10T13:43:13.000-04:00",
"item_id": "MLB502951323",
"seller_id": xxxxxxx,
"status": "UNANSWERED",
"text": "Olá amigo, tem na cor preta?"
"from": { "id": xxxxxxx,
"answered_questions": 0 }
}
MercadoLivre Developers Conference
44. APIs OVERVIEW
GET /questions/123123123
{
"id": 123123123,
"answer": null,
"date_created": "2013-08-10T13:43:13.000-04:00",
"item_id": "MLB502951323",
"seller_id": xxxxxxx,
"status": "UNANSWERED",
"text": "Olá amigo, tem na cor preta?"
"from": { "id": xxxxxxx,
"answered_questions": 0 }
}
MercadoLivre Developers Conference
56. APIs OVERVIEW
Notificação
MELIAPP POST
200 OK MELIAPP
{
"user_id": 1234,
"resource": "/orders/123123123",
"topic": "orders",
"received": "2013-08-09T14:59:15+00:00",
"sent": "2013-08-09T14:59:15+00:00"
}
MercadoLivre Developers Conference
57. APIs OVERVIEW
GET /orders/123123123
{
"id": 785128848,
"status": "paid",
"status_detail": null,
"date_created": "2013-08-25T15:55:03.000-04:00",
"date_closed": "2013-08-25T15:55:03.000-04:00",
"order_items": [{
"item": {
"id": "MLB500xxxxx9",
"title": "Playstation 3",
"variation_id": null,
"variation_attributes": [ ] },
"quantity": 1,
"unit_price": 99.98,
"currency_id": "BRL",
}],
MercadoLivre Developers Conference
58. APIs OVERVIEW
GET /orders/123123123
{
"id": 785128848,
"status": "paid",
"status_detail": null,
"date_created": "2013-08-25T15:55:03.000-04:00",
"date_closed": "2013-08-25T15:55:03.000-04:00",
"order_items": [{
"item": {
"id": "MLB500xxxxx9",
"title": "Playstation 3",
"variation_id": null,
"variation_attributes": [ ] },
"quantity": 1,
"unit_price": 99.98,
"currency_id": "BRL",
}],
MercadoLivre Developers Conference
59. APIs OVERVIEW
GET /orders/123123123
{
"id": 785128848,
"status": "paid",
"status_detail": null,
"date_created": "2013-08-25T15:55:03.000-04:00",
"date_closed": "2013-08-25T15:55:03.000-04:00",
"order_items": [{
"item": {
"id": "MLB500xxxxx9",
"title": "Playstation 3",
"variation_id": null,
"variation_attributes": [ ] },
"quantity": 1,
"unit_price": 99.98,
"currency_id": "BRL",
}],
MercadoLivre Developers Conference
60. APIs OVERVIEW
GET /orders/123123123
{
"id": 785128848,
"status": "paid",
"status_detail": null,
"date_created": "2013-08-25T15:55:03.000-04:00",
"date_closed": "2013-08-25T15:55:03.000-04:00",
"order_items": [{
"item": {
"id": "MLB500xxxxx9",
"title": "Playstation 3",
"variation_id": null,
"variation_attributes": [ ] },
"quantity": 1,
"unit_price": 99.98,
"currency_id": "BRL",
}],
MercadoLivre Developers Conference
61. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
62. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
63. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
64. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
65. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
66. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
67. APIs OVERVIEW
GET /orders/123123123
"buyer": {
"id": 123xxxx64,
"nickname": "XXXXXXXXXXXXXXX",
"email": "email@teste.com.br",
"phone": {
"area_code": " ",
"number": "919xxxxx183",
"extension": null,
},
"first_name": "usuario",
"last_name": "teste",
"billing_info": {
"doc_type": "CPF",
"doc_number": "663xxxxx53",
},
},
MercadoLivre Developers Conference
68. APIs OVERVIEW
GET /orders/123123123
"payments": [
{
"id": 64xxxxx64,
"transaction_amount": 99.98,
"coupon_amount": 0,
"currency_id": "BRL",
"status": "approved",
"date_created": "2013-08-25T16:04:26.000-04:00",
"date_last_modified": "2013-08-25T16:04:26.000-04:00",
},
],
MercadoLivre Developers Conference
69. APIs OVERVIEW
GET /orders/123123123
"payments": [
{
"id": 64xxxxx64,
"transaction_amount": 99.98,
"coupon_amount": 0,
"currency_id": "BRL",
"status": "approved",
"date_created": "2013-08-25T16:04:26.000-04:00",
"date_last_modified": "2013-08-25T16:04:26.000-04:00",
},
],
MercadoLivre Developers Conference
70. APIs OVERVIEW
GET /orders/123123123
"payments": [
{
"id": 64xxxxx64,
"transaction_amount": 99.98,
"coupon_amount": 0,
"currency_id": "BRL",
"status": "approved",
"date_created": "2013-08-25T16:04:26.000-04:00",
"date_last_modified": "2013-08-25T16:04:26.000-04:00",
},
],
MercadoLivre Developers Conference
71. APIs OVERVIEW
GET /orders/123123123
"shipping": {
"id": 2070xxx653,
"date_first_printed": null,
"shipping_mode": "me1",
"service_id": 2,
"shipment_type": "shipping",
"status": "shipped",
"currency_id": "BRL",
"date_created": "2013-08-25T16:04:20.000-04:00",
"receiver_address": {
"address_line": "joao xxxxxxx angulo 1099",
"id": 11xxxxx31,
"zip_code": "68xxxxx00",
"state": {
"id": "BR-PA",
"name": "Pará",
},
MercadoLivre Developers Conference
72. APIs OVERVIEW
GET /orders/123123123
"shipping": {
"id": 2070xxx653,
"date_first_printed": null,
"shipping_mode": "me1",
"service_id": 2,
"shipment_type": "shipping",
"status": "shipped",
"currency_id": "BRL",
"date_created": "2013-08-25T16:04:20.000-04:00",
"receiver_address": {
"address_line": "joao xxxxxxx angulo 1099",
"id": 11xxxxx31,
"zip_code": "68xxxxx00",
"state": {
"id": "BR-PA",
"name": "Pará",
},
MercadoLivre Developers Conference
81. APIs OVERVIEW
GET /sites/MLB/search
Alguns filtros:
Por keyword
GET /sites/MLB/search?q=ipod
Por Categoria
GET /sites/MLB/search?category=MLB105449
Por Nickname
GET /sites/MLB/search?nickname=$NICKNAME
Por Seller_id
GET /sites/MLB/search?seller_id=89827346
MercadoLivre Developers Conference
82. APIs OVERVIEW
GET /sites/MLB/search
Alguns filtros:
Por keyword
GET /sites/MLB/search?q=ipod
Por Categoria
GET /sites/MLB/search?category=MLB105449
Por Nickname
GET /sites/MLB/search?nickname=$NICKNAME
Por Seller_id
GET /sites/MLB/search?seller_id=89827346
MercadoLivre Developers Conference
83. APIs OVERVIEW
GET /sites/MLB/search
Alguns filtros:
Por keyword
GET /sites/MLB/search?q=ipod
Por Categoria
GET /sites/MLB/search?category=MLB105449
Por Nickname
GET /sites/MLB/search?nickname=$NICKNAME
Por Seller_id
GET /sites/MLB/search?seller_id=89827346
MercadoLivre Developers Conference
84. APIs OVERVIEW
GET /sites/MLB/search
Alguns filtros:
Por keyword
GET /sites/MLB/search?q=ipod
Por Categoria
GET /sites/MLB/search?category=MLB105449
Por Nickname
GET /sites/MLB/search?nickname=$NICKNAME
Por Seller_id
GET /sites/MLB/search?seller_id=89827346
MercadoLivre Developers Conference
85. APIs OVERVIEW
GET /sites/MLB/search
Combinações:
GET /sites/MLB/search?category=MLB105449&seller_id=89827346&q=ipod
Ordenação – Sort
GET /sites/MLB/search?q=ipod&sort=price_asc
Paginação – Limit e Offset
GET /sites/MLB/search?q=ipod&offset=100&limit=10
MercadoLivre Developers Conference
86. APIs OVERVIEW
GET /sites/MLB/search
Combinações:
GET /sites/MLB/search?category=MLB105449&seller_id=89827346&q=ipod
Ordenação – Sort
GET /sites/MLB/search?q=ipod&sort=price_asc
Paginação – Limit e Offset
GET /sites/MLB/search?q=ipod&offset=100&limit=10
MercadoLivre Developers Conference
87. APIs OVERVIEW
GET /sites/MLB/search
Combinações:
GET /sites/MLB/search?category=MLB105449&seller_id=89827346&q=ipod
Ordenação – Sort
GET /sites/MLB/search?q=ipod&sort=price_asc
Paginação – Limit e Offset
GET /sites/MLB/search?q=ipod&offset=100&limit=10
MercadoLivre Developers Conference
88. APIs OVERVIEW
GET /sites/MLB/search
Combinações:
GET /sites/MLB/search?category=MLB105449&seller_id=89827346&q=ipod
Ordenação – Sort
GET /sites/MLB/search?q=ipod&sort=price_asc
Paginação – Limit e Offset
GET /sites/MLB/search?q=ipod&offset=100&limit=10
MercadoLivre Developers Conference