获取微信小店授权记录列表
所属权限 | ads_management |
请求地址 | wechat_shop_authorization/get |
请求方法 | GET |
全局参数
全局参数是指每一个接口都需要使用到的参数。详情参考,代码案例参考。
参数名称 | 参数类型 |
---|---|
access_token | 授权令牌,完成 OAuth 2.0 授权后获得,参考授权认证章节 |
timestamp |
当前的时间戳,单位为秒,允许客户端请求最大时间误差为 300 秒。 MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳 MarketingAPI 所使用的时区为 GMT+8,例如当时间戳为 1494840119 时,表示 2017-05-15 17:21:59 |
nonce | 随机字串标识,不超过 32 个字符,由调用方自行生成,需保证全局唯一性 |
请求参数
标有*的参数为必填项
名称 | 类型 | 描述 |
---|---|---|
account_id*
|
integer | 广告主帐号 id,有操作权限的帐号 id,不支持代理商 id |
filtering
|
struct[] | 过滤条件,若此字段不传,或传空则视为无限制条件,详见 [过滤条件] 数组最小长度 1,最大长度 4 |
field*
|
string | 过滤字段 可选值:{ wechat_channels_shop_name, wechat_channels_shop_id, authorization_id, authorization_status } |
operator*
|
enum | 操作符,[枚举详情] 当 field 取值 wechat_channels_shop_name 时,可选值:{ EQUALS, CONTAINS } 当 field 取值 wechat_channels_shop_id 时,可选值:{ EQUALS } 当 field 取值 authorization_id 时,可选值:{ EQUALS } 当 field 取值 authorization_status 时,可选值:{ EQUALS, IN } |
values*
|
string[] | 字段取值,values 数组的个数限制与 operator 的取值相关,详见 [过滤条件] 当 field 取值 wechat_channels_shop_name 时,数组长度为 1 字段长度最小 1 字节,长度最大 100 字节 当 field 取值 authorization_status 时,数组最小长度 1,最大长度 10 字段长度最小 1 字节,长度最大 100 字节 当 field 取值 wechat_channels_shop_id 时,数组长度为 1 字段长度最小 1 字节,长度最大 100 字节 当 field 取值 authorization_id 时,数组长度为 1 字段长度最小 1 字节,长度最大 100 字节 |
page
|
integer | 搜索页码 最小值 1,最大值 99999 默认值:1 |
page_size
|
integer | 一页显示的数据条数 最小值 1,最大值 100 默认值:10 |
请求示例
curl -v -G 'https://api.e.qq.com/v3.0/wechat_shop_authorization/get?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'account_id=<ACCOUNT_ID>' \
-d 'filtering=[
{
"values": []
}
]' \
-d 'page=1' \
-d 'page_size=10'
应答字段
名称 | 类型 | 描述 |
---|---|---|
list
|
struct[] | 返回信息列表 |
authorization_id
|
integer | 授权 id |
wechat_channels_shop_name
|
string | 微信小店名称 |
wechat_channels_shop_id
|
string | 微信小店 id |
wechat_channels_shop_icon
|
string | 微信小店头像 |
authorization_begin_time
|
integer | 授权开始时间 |
authorization_ttl
|
integer | 授权时长,单位:秒;授权到期时间计算规则为:授权发起时间+授权时长 |
authorization_status
|
enum | 授权状态,[枚举详情] |
authorization_qrcode_url
|
string | 授权码图片链接,图片有效期只有 30 分钟,如图片失效,需要自行刷新 |
authorization_qrcode_expired_time
|
integer | 授权小程序码过期时间 |
page_info
|
struct | 分页配置信息 |
page
|
integer | 搜索页码 默认值:1 |
page_size
|
integer | 一页显示的数据条数 默认值:10 |
total_number
|
integer | 总条数 |
total_page
|
integer | 总页数 |
应答示例
{
"code": 0,
"message": "",
"message_cn": "",
"data": {
"list": [],
"page_info": {
"page": 1,
"page_size": 10,
"total_number": 1,
"total_page": 1
}
}
}
可视化调试工具
问题仍未解决?
请前往腾讯广告反馈中心在线提交问题,我们的人工客服将为你服务