当前位置:网站首页>pdd.order.information.get拼多多订单详情接口代码对接教程
pdd.order.information.get拼多多订单详情接口代码对接教程
2022-08-10 03:41:00 【wx_1597063760】
pdd.order.information.get拼多多订单详情接口代码对接教程如下:
1.公共参数
参数名称 | 参数类型 | 是否必填 | 参数描述(接口代码教程wx19970108018) |
---|---|---|---|
type | String | 必填 | API接口名称(点击获取请求key和secret) |
client_id | String | 必填 | POP分配给应用的client_id |
access_token | String | 非必填 | 通过code获取的access_token |
timestamp | String | 必填 | UNIX时间戳,单位秒,需要与拼多多服务器时间差值在10分钟内 |
data_type | String | 非必填 | 响应格式,即返回数据的格式,JSON或者XML(二选一),默认JSON,注意是大写 |
version | String | 非必填 | API协议版本号,默认为V1,可不填 |
sign | String | 必填 | API输入参数签名结果,签名算法参考开放平台接入指南第三部分底部。 |
2.请求参数
参数接口 | 参数类型 | 是否必填 | 说明 |
---|---|---|---|
order_sn | STRING | 必填 | 订单号 |
3.响应参数
4.请求示例(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
# 请求示例 url 默认请求参数已经做URL编码
url = "https://wx19970108018/pinduoduo/custom/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&method="
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
边栏推荐
猜你喜欢
请问mindspore支持l1范数归一化吗
Did not detect default resource location for test class xxxx
Take you to an in-depth understanding of the version update of 3.4.2, what does it bring to users?
The same is a primary test, why does he pay 5,000 yuan more than me?
874. 筛法求欧拉函数
goland console shows overlapping problem solution
Flutter 如何安装 pub.dev 上的 package
Small program subcontracting and subcontracting pre-download
Software life cycle (the work of each phase of software engineering)
RoyalScope分析仪:CAN总线波形台阶和信号幅值低的问题
随机推荐
留言板
搭建Prometheus+Grafana框架监控Hyperledger Fabric的运行
golang中的URL 的编码和解码(转)
长沙:借网红的风,铺长红的路
wind7 无法安装tools (问题已解决)
mindspore gpu版本安装问题
Jackson的ObjectMapper在项目中的主要运用
电话自动拨号在电脑上自动拨打
学习总结week4_1json
C语言原码,反码,补码与大小端
golang:base64编解码(转)
RoyalScope分析仪:发现CAN总线波形台阶和信号幅值低的问题
TCP协议之《Pacing功能》
线程和线程间通信(C语言)
How does a new tester do functional testing?Test thinking is really important
TCP协议之《延迟ACK策略》
charles的功能操作
【2022河南萌新联赛第(五)场:信息工程大学】【部分思路题解+代码解析】
Small program subcontracting and subcontracting pre-download
c语言进阶篇:动态内存管理(相关函数、常见错误、笔试题)