当前位置:网站首页>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|"
}
}
}边栏推荐
- Essential elements of science fiction 3D scenes - City
- There is no solution to the decryption error of the remote user 'sa' and the service master password mapped from the remote server 'to the local user' (null) /sa '
- Methods of software testing
- Fabric. JS dynamically set font size
- Fabric. JS free draw circle
- 关于Flink框架窗口(window)函数最全解析
- Federated Search: all requirements in search
- 大顶堆、小顶堆与堆排序
- 微信小程序使用towxml显示公式
- 每日学习2
猜你喜欢

A white hole formed by antineutrons produced by particle accelerators

跨服务器数据访问的创建链接服务器方法

联合搜索:搜索中的所有需求

每日学习3

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

The most complete analysis of Flink frame window function

Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)

<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持

PyQt5_ Qscrollarea content is saved as a picture

MQ tutorial | exchange (switch)
随机推荐
[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)
Packet capturing tool Fiddler learning
复用和分用
STM32标准固件库函数名记忆(二)
每日学习3
MQ教程 | Exchange(交换机)
Fabric.js 缩放画布
Generally speaking, if the error of inconsistent tab and space occurs frequently
How many knowledge points can a callable interface have?
快解析:轻松实现共享上网
Openharmony notes --------- (4)
YOLOv3&YOLOv5输出结果说明
[development environment] 010 editor tool (tool download | binary file analysis template template installation | shortcut key viewing and setting)
##51单片机实验之简易验证码发生器
Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
Why can't browsers read JSX?
字符串匹配问题
联合搜索:搜索中的所有需求
4. Array pointer and pointer array
socket(套接字)与socket地址