taobao open api in python
from pytaobao.apis.trade import TradeApi
fields = 'received_payment,receiver_country,receiver_town,pay_channel,title,pay_time'
cli = TradeApi(app_key='app_key',
app_secret='app_secret',
session='session')
tid = 'tid'
resp = taobao_cli.get_trade_fullinfo(fields=fields, tid=tid)
from pytaobao.apis.base import TaobaoClient
fields = 'received_payment,receiver_country,receiver_town,pay_channel,title,pay_time'
cli = TaobaoClient(app_key='app_key',
app_secret='app_secret',
session='session')
tid = 'tid'
params = {
'fields': fields,
'tid': tid
}
resp = taobao_cli.perform_request(api="taobao.trades.fullinfo.get",
params=params)
-
Required Parameter
- app_key
- app_secret
- session
-
Optional Parameter
- endpoint
- default is
http://gw.api.taobao.com/router/rest
- for https is
https://eco.taobao.com/router/rest
- default is
- endpoint
-
Trade Api
- taobao.trade.fullinfo.get
- taobao.trade.get
- taobao.trades.sold.get
-
Trade Rate Api