Novidades das APIs wesley nascimento
-
Upload
fsolari -
Category
Technology
-
view
262 -
download
2
description
Transcript of Novidades das APIs wesley nascimento
![Page 1: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/1.jpg)
Wesley Nascimento
Novidades das API's
Software Engineer
![Page 2: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/2.jpg)
Developer Conference
Subtitle
● Lista de produtos clean
● Um campo a menos no JSON
{ "subtitle" : "R.I.P" }
![Page 3: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/3.jpg)
Developer Conference
![Page 4: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/4.jpg)
Developer Conference
Trends
curl https://api.mercadolibre.com/sites/MLB/trends/search
![Page 5: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/5.jpg)
Developer Conference
![Page 6: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/6.jpg)
Developer Conference
![Page 7: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/7.jpg)
Developer Conference
Lojas oficiais
{ "official_store_id": 1,
![Page 8: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/8.jpg)
Developer Conference
Lojas oficiais
{ "official_store_id": 1, "listing_type": "gold_special"}
![Page 9: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/9.jpg)
Developer Conference
![Page 10: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/10.jpg)
Baby Size
{ "official_store_id" : 1, "listing_type_id" : "gold_special"}
![Page 11: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/11.jpg)
Developer Conference
![Page 12: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/12.jpg)
Developer Conference
![Page 13: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/13.jpg)
Developer Conference
gráfico 1
8.869envios
![Page 14: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/14.jpg)
Developer Conference
Mercado Envios
gráfico 2
972.096envios
![Page 15: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/15.jpg)
Developer Conference
Mercado Envios
10.961%
![Page 16: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/16.jpg)
Developer Conference
Free Shipping
● Excluir Norte e Nordeste
![Page 17: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/17.jpg)
Developer Conference
Mercado Envios
Psiu! Você pode calcular o frete sozinho!
![Page 18: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/18.jpg)
Developer Conference
Validate
● Erros mais detalhados
● Facilidade na identificação de problemas
![Page 19: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/19.jpg)
Developer Conference
Validate
curl -X POST -H "Content-Type: application/json" -d '{"seller_id":,"id","price":"p","seller_contact":null,"pictures": [[1,2,3]] }'
https://api.mercadolibre.com/items/MLBXXXXX?access_token=X
![Page 20: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/20.jpg)
Developer Conference
Validate
[invalid property type: [price] expected Number but was String value: p,
invalid property type: [seller_contact] expected Map but was Null value: null,
invalid property type: [pictures[0]] expected Map but was JSONArray value: [1, 2, 3],
invalid property type: [seller_id] expected Number but was String value: id]",
![Page 21: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/21.jpg)
Developer Conference
![Page 22: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/22.jpg)
![Page 23: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/23.jpg)
Developer Conference
Identificadores de produtos
curl https://api.mercadolibre.com/items/MLBXXX/product_identifiers
![Page 24: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/24.jpg)
Developer Conference
Identificadores de produtos
● brand
Marca do produto
![Page 25: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/25.jpg)
Developer Conference
Identificadores de produtos
● brand● mpn
Número de peça do fabricante
![Page 26: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/26.jpg)
Developer Conference
Identificadores de produtos
● brand● mpn● gtins
![Page 27: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/27.jpg)
Developer Conference
Identificadores de produtos
● brand● mpn● gtins
○ type
Tipo do código: EAN, ISBN, UPC, JAN
![Page 28: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/28.jpg)
Developer Conference
Identificadores de produtos
● brand● mpn● gtins
○ type○ code
Número global de negociação do produto
![Page 29: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/29.jpg)
Developer Conference
Identificadores de produtos
curl -X PUT -H "Content-Type: application/json" -d {
"brand": "Apple","mpn": "ME499BZA","gtins": [
{"type": "EAN","code": "00885909793839",
},],
}
https://api.mercadolibre.com/items/{item_id}/product_identifiers?access_token=X
![Page 30: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/30.jpg)
Developer Conference
Identificadores de produtos
curl -X PUT -H "Content-Type: application/json" -d {
"brand": "Apple","mpn": "ME499BZA","gtins": [
{"type": "EAN","code": "00885909793839",
},],
}
https://api.mercadolibre.com/items/{item_id}/product_identifiers?access_token=X
![Page 31: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/31.jpg)
Developer Conference
Identificadores de produtos
curl -X PUT -H "Content-Type: application/json" -d {
"brand": "Apple","mpn": "ME499BZA","gtins": [
{"type": "EAN","code": "00885909793839",
},],
}
https://api.mercadolibre.com/items/{item_id}/product_identifiers?access_token=X
![Page 32: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/32.jpg)
Developer Conference
Identificadores de produtos
curl -X PUT -H "Content-Type: application/json" -d {
"brand": "Apple","mpn": "ME499BZA","gtins": [
{"type": "EAN","code": "00885909793839",
},],
}
https://api.mercadolibre.com/items/{item_id}/product_identifiers?access_token=X
![Page 33: Novidades das APIs wesley nascimento](https://reader034.fdocumentos.com/reader034/viewer/2022042516/559a67301a28abd6348b4622/html5/thumbnails/33.jpg)
Developer Conference
Wesley Nascimento@wesley_cintra