本文主要是介绍nft 蚂蚁数藏科技开发,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
蚂蚁科技比较容易开发
主要有2个接口:
- 获取藏品寄售列表接口
- 下单接口
单品寄售列表:https://app-api.mayi.art/api/market/market/getMarketGoodsListByGoodsId POST
请求体:{“page”:3,“sort”:“price”,“type”:2,“id”:“1007”,“order”:“asc”}
响应体:{
“list”: [
{
“id”: 218360,
“collection_code”: 28326,
“price”: 579,
“total_num”: 30000,
“status”: 1
},
{
“id”: 218176,
“collection_code”: 9310,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 218409,
“collection_code”: 4304,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 218579,
“collection_code”: 3967,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 218637,
“collection_code”: 22240,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 218914,
“collection_code”: 5136,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 219037,
“collection_code”: 25248,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 220229,
“collection_code”: 24434,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 220419,
“collection_code”: 29864,
“price”: 580,
“total_num”: 30000,
“status”: 1
},
{
“id”: 220516,
“collection_code”: 13571,
“price”: 580,
“total_num”: 30000,
“status”: 1
}
],
“count”: 0,
“ltnum”: 23804
}
下单:https://app-api.mayi.art/api/order/pay/CreateMarketOrder POST
请求体:{“market_goods_id”:220516,“pay_type”:4}
响应体:{“code”:1,“msg”:“下单成功”,“time”:“1678708985”,“data”:{“order_sn”:“2023031320031010151481368053”,“order_id”:“256162”,“time”:“300”}}
支付提取:https://app-api.mayi.art/api/order/pay/doPay POST (需认证token)
请求体:{“pay_type”:4,“order_number”:“2023031320031010151481368053”,“order_type”:2,“pay_way”:“huifu”,“pay_scene”:“H5”,“returnurl”:“https%3A%2F%2Fwww.mayi.art%2F%23%2Fpages%2Forder%2FdefaultDetail%3Fid%3D256162”}
{“pay_type”:4,“order_number”:“2023032023500949579850916451”,“order_type”:2,“pay_way”:“huifu”,“pay_scene”:“H5”,“returnurl”:“https%3A%2F%2Fwww.mayi.art%2F%23%2Fpages%2Forder%2FdefaultDetail%3Fid%3D1173711”}
这篇关于nft 蚂蚁数藏科技开发的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!