开发

兼容小程序查询接口

接口功能

查询宿主支持的小程序

URL

https://openapi.baidu.com/rest/2.0/smartapp/osa/func/applist

调用方式

GET

是否可重入

是

参数说明

参数名 类型 必填 说明
union_sign String 是 签名,生成方式见签名说明
union_timestamp Long 是 时间戳,时间标准为 UTC,取当前请求时间(精确到秒)
union_nocestr String 是 随机字符串,每次请求生成一个新的随机字符串,随机串长度不能超过 64 位,可以有数字,字母,连接符-组成
access_token String 是 access_token
host_version String 是 APP 版本
os_type Byte 是 端类型 1: Android, 2: iOS
app_key String 否 指定单个小程序 Key
page_size Integer 否 页大小
page_no Integer 否 页码

返回字段

Data Array

参数名 类型 说明
osType int 端类型 1: Android, 2: iOS
appKey string 小程序 Key

返回示例

1
2
3
4
5
6
7
8
9
10
11
12
{
"errno": 0,
"msg": "success",
"timestamp": 1599791126,
"data": [
{
"osType": 1,
"appKey": "QOsLtUFutNR3lbGYQbhko666dFeQEBoh"
}
],
"request_id": "4768d65f65a94264bcca7c7b27865367"
}