查询APP偏好定向所需的APPID
更新时间:2019-06-19
接口描述
根据APP名称模糊查询APPID,用于APP偏好定向设置。
接口URL
http://sem.baidubce.com/v1/feed/cloud/SearchFeedService/getAppIdNameFeed
请求参数说明
字段名称 | 类型 | 描述 |
---|---|---|
query | string | APP名称包含的关键词。 |
响应参数说明
响应为APP信息的数组,包含APPID和APP名称。
字段名称 | 类型 | 描述 |
---|---|---|
id | string | APPID。 注意:APPID为数字,但其数值可能超过64bit |
name | string | APP名称。 |
请求示例
POST /v1/feed/cloud/SearchFeedService/getAppIdNameFeed HTTP/1.1
Accept-encoding: 'gzip, deflate'
Host: sem.baidubce.com
ContentType: application/json
Authorization: bce-auth-v1/b406c344bb764e00aff7d3b80d9bd87a/2019-06-05T07:34:31Z/1800/host/bb0f820e4499b8b44548388b37a7afed970e965a7a59f79ebac47a99c315a97b(签名有效时间为30分钟,需要替换成自己生成的签名)
Accept: '*/*'
{
"header": {
"opUsername": "example",
"tgUsername": "example",
"bceUser": "example",
"opPassword": "example",
"tgPassword": "example"
},
"body": {
"query": "贴吧"
}
}
响应示例
{
"body": {
"data": [
{
"id": 1234567890,
"name": "百度贴吧"
}
]
},
"header": {
"oprs": 1,
"failures": [],
"succ": 1,
"oprtime": 0,
"desc": "success",
"status": 0
}
}