当前位置:网站首页>taobao. trade. Get (get some information of a single transaction), Taobao store order interface, Taobao oauth2.0 interface, Taobao R2 interface code docking and sharing
taobao. trade. Get (get some information of a single transaction), Taobao store order interface, Taobao oauth2.0 interface, Taobao R2 interface code docking and sharing
2022-07-02 14:35:00 【wx_ one billion five hundred and ninety-seven million sixty-thr】
taobao.trade.get( Get some information about a single transaction ), Taobao store order interface , TaoBao oAuth2.0 Interface , TaoBao R2 Interface code docking and sharing , Interface can be used for store order synchronization ,ERP System , Order push and other businesses , Hope to help friends in need , Code docking is as follows :
1. Common parameters :
| name | type | must | describe |
|---|---|---|---|
| key | String | yes | call key( Must be GET Way of splicing in URL in , Click to get the test key and secret) |
| secret | String | yes | Call key |
| api_name | String | yes | API The name of the interface ( Included in the request address )[item_search,item_get,item_search_shop etc. ] |
| cache | String | no | [yes,no] Default yes, The cached data... Will be called , It's quite fast |
| result_type | String | no | [json,jsonu,xml,serialize,var_export] Return data format , The default is json,jsonu The output content can be read directly in Chinese |
| lang | String | no | [cn,en,ru] Translation language , Default cn Simplified Chinese |
| version | String | no | API edition |
2. Request parameters
Request parameters :api=
Parameter description : Other parameters : Refer to the interface document of Taobao open platform , It is consistent with the parameters of Taobao https://open.taobao.com/api.htm?docId=140&docType=2
| name | type | must | describe |
|---|---|---|---|
| api | String | The interface name of Taobao open platform ( Such as :taobao.picture.upload( Upload single picture )) | |
| session | String | In exchange for authorization session_id | |
| [ The other parameters ] | String | Other parameters : Refer to the interface document of Taobao open platform , It is consistent with the parameters of Taobao https://open.taobao.com/api.htm?docId=140&docType=2 |
3. Request example (CURL、PHP 、PHPsdk 、Java 、C# 、Python...)
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# Request example url The default request parameters have been changed URL code
url = "https://wx19970108018/taobao/custom/?key=< Your own apiKey>&secret=< Your own apiSecret>&method="
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)4. Response example
{
"trade_get_response":{
"trade":{
"seller_nick":" I'm testing ",
"pic_path":"http:\/\/img08.taobao.net\/bao\/uploaded\/i8\/T1jVXXXePbXXaoPB6a_091917.jpg",
"payment":"200.07",
"seller_rate":true,
"post_fee":"200.07",
"consign_time":"2000-01-01 00:00:00",
"received_payment":"200.07",
"order_tax_fee":"0",
"tid":2231958349,
"num":1,
"num_iid":3424234,
"status":"TRADE_NO_CREATE_PAY",
"title":" dudu ",
"type":"fixed( price )",
"price":"200.07",
"discount_fee":"200.07",
"total_fee":"200.07",
"created":"2000-01-01 00:00:00",
"pay_time":"2000-01-01 00:00:00",
"modified":"2000-01-01 00:00:00",
"end_time":"2000-01-01 00:00:00",
"buyer_message":" Gifts to be given , Don't forget ",
"buyer_memo":" The coat should be one size larger ",
"seller_memo":" well ",
"buyer_nick":" I'm testing ",
"shipping_type":"free",
"adjust_fee":"200.07",
"buyer_rate":true,
"service_tags":{
"logistics_tag":[
{
}
]
},
"o2o":"crm",
"o2o_guide_id":"123456",
"o2o_shop_id":"123456",
"o2o_guide_name":" Shopping guide of West Lake store 1",
"o2o_shop_name":" West Lake store ",
"o2o_delivery":"inshop",
"orders":{
"order":[
{
}
]
},
"eticket_service_addr":" Address information ",
"o2o_et_order_id":"193753681999224",
"order_tax_promotion_fee":"0",
"pmtp":"GAP_MCARD^1001|"
}
}
}边栏推荐
- Advanced usage of C language -- function pointer: callback function; Conversion table
- TeamTalk源码分析之win-client
- Openharmony notes --------- (4)
- threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
- 【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
- <口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
- 【apipost】使用教程
- docker mysql
- mathML转latex
- Start to write a small demo - three piece chess
猜你喜欢

测试框架TestNG的使用(二):testNG xml的使用

一张图彻底掌握prototype、__proto__、constructor之前的关系(JS原型、原型链)

Packet capturing tool Fiddler learning

Fabric.js 上划线、中划线(删除线)、下划线

Daily learning 2

Yolov3 & yolov5 output result description

Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute

Daily learning 3

Method of creating linked server for cross server data access

PHP linked list creation and traversal
随机推荐
Development and design of animation surrounding mall sales website based on php+mysql
【apipost】使用教程
Fabric. JS manual bold text iText
threejs的控制器 立方体空间 基本控制器+惯性控制+飞行控制
Methods of software testing
NLA natural language analysis realizes zero threshold of data analysis
String matching problem
每日学习2
Do you know that there is an upper limit on the size of Oracle data files?
Use of swagger
提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
求轮廓最大内接圆
Fabric. JS free drawing ellipse
[Hongke technology sharing] how to test DNS server: DNS performance and response time test
STM32 library function for GPIO initialization
uniapp自动化测试学习
Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
mongodb的认识
4、数组指针和指针数组
Fabric. JS free draw circle