第三方平台 开发指南 接口说明 代授权小程序接口 基本信息设置
# 基本信息设置
更新时间:2024-02-04 18:04:16
# 设置服务器域名
通过本接口可以配置服务器域名。
# 接口说明
| 请求头 | 说明 |
|---|---|
| URL | https://open.kuaishou.com/openapi/mp/auth/app/server_domain |
| Method | POST |
| Content-Type | application/json |
# 请求参数
查询参数
| 参数 | 是否必须 | 类型 | 备注 |
|---|---|---|---|
| component_app_id | 是 | string | 第三方应用 appid |
| authorizer_access_token | 是 | string | 授权小程序接口调用凭据 |
请求体
| 参数 | 是否必须 | 类型 | 备注 |
|---|---|---|---|
| action | 是 | string | add添加 delete删除 set覆盖 get获取 |
| request | 是 | string array | request合法域名 当 action 是 get 时不需要此字段 |
| socket | 是 | string array | socket合法域名 当 action 是 get 时不需要此字段 |
| upload_file | 是 | string array | upload_file合法域名 当 action 是 get 时不需要此字段 |
| download_file | 是 | string array | download_file合法域名 当 action 是 get 时不需要此字段 |
| udp | 是 | string array | udp合法域名 当 action 是 get 时不需要此字段 |
{
"request": ["***.com"],
"socket": ["***.com"],
"upload_file": ["***.com"],
"download_file": ["***.com"],
"udp": ["***.com"]
}
# 响应
| 参数 | 类型 | 描述 |
|---|---|---|
| result | number | 状态码 1-成功 非1-错误码 |
| error_msg | string | 错误提示信息,参考常见错误码 |
| action | string array | |
| request | string array | |
| socket | string array | |
| upload_file | string array | |
| download_file | string array | |
| udp | string array |
示例:
{
"result":1,
"error_msg":"sucess",
"request": ["***.com"],
"socket": ["***.com"],
"upload_file": ["***.com"],
"download_file": ["***.com"],
"udp": ["***.com"]
}
# 错误码
| 错误码 | 说明 |
|---|---|
| 403106 | 要删除的域名不存在 |
# 设置业务域名
通过本接口可配置业务域名。
# 接口说明
| 请求头 | 说明 |
|---|---|
| URL | https://open.kuaishou.com/openapi/mp/auth/app/webview_domain |
| Method | POST |
| Content-Type | application/json |
# 请求参数
查询参数
| 参数 | 是否必须 | 类型 | 备注 |
|---|---|---|---|
| component_app_id | 是 | string | 第三方应用 appid |
| authorizer_access_token | 是 | string | 授权小程序接口调用凭据 |
请求体
| 参数 | 是否必须 | 类型 | 备注 |
|---|---|---|---|
| action | 是 | string | add添加 delete删除 set覆盖 get获取 |
| webview | 是 | string array | webview合法域名 当 action 是 get 时不需要此字段 |
{
"webview": ["xx.com"]
}
# 响应
| 参数 | 类型 | 描述 |
|---|---|---|
| result | number | 状态码 1-成功 非1-错误码 |
| error_msg | string | 错误提示信息,参考常见错误码 |
| webview | string array |
示例:
{
"result":1,
"error_msg":"sucess",
"webview": ["xx.com"]
}
# 错误码
| 错误码 | 说明 |
|---|---|
| 403106 | 要删除的域名不存在 |
# 获取小程序基本信息
该接口用于第三方应用为授权小程序获取基本信息
# 接口说明
| 请求头 | 说明 |
|---|---|
| URL | https://open.kuaishou.com/openapi/mp/auth/app/info |
| Method | GET |
# 请求参数
查询参数
| 参数 | 是否必须 | 类型 | 备注 |
|---|---|---|---|
| component_app_id | 是 | string | 第三方应用 appid |
| authorizer_access_token | 是 | string | 授权小程序接口调用凭据 |
# 响应
| 参数 | 类型 | 描述 |
|---|---|---|
| result | number | 状态码 1-成功 非1-错误码 |
| error_msg | string | 错误提示信息,参考常见错误码 |
| status | number | 1未完善 2已上线 3未上线 |
| app_name | string | 小程序名称 |
| name_audit | object | 小程序名称审核信息 |
| app_avatar | string | 当前小程序头像 |
| avatar_audit | object | 头像审核信息 |
| app_intro | string | 当前小程序介绍 |
| intro_audit | object | 小程序介绍审核信息 |
| subject | object | 主体信息 |
| app_category | Array | 服务类目 |
小程序名称审核信息
| 参数 | 类型 | 描述 |
|---|---|---|
| new_name | string | 提审的小程序名称 |
| remaining_times | number | 剩余次数 |
| status | number | 审核状态 0审核中 1审核通过 2审核拒绝 |
| reason | string | 拒绝原因 |
小程序头像审核信息
| 参数 | 类型 | 描述 |
|---|---|---|
| new_name | string | 提审的小程序头像 |
| remaining_times | number | 剩余次数 |
| status | number | 审核状态 0审核中 1审核通过 2审核拒绝 |
| reason | string | 拒绝原因 |
小程序介绍审核信息
| 参数 | 类型 | 描述 |
|---|---|---|
| new_name | string | 提审的小程序介绍 |
| remaining_times | number | 剩余次数 |
| status | number | 审核状态 0审核中 1审核通过 2审核拒绝 |
| reason | string | 拒绝原因 |
主体信息
| 参数 | 类型 | 描述 |
|---|---|---|
| name | string | 主体名称 |
| type | number | 主体类型 1企业 |
服务类目
| 参数 | 类型 | 描述 |
|---|---|---|
| category_id | string | 服务类目id |
| category_name | string | 服务类目名称 |
| status | number | 审核状态 0审核中 1审核通过 2审核拒绝 |
| reason | string | 拒绝原因 |
示例:
{
"result": 1,
"error_msg": "success",
"status": 2,
"app_name": "xxx小程序",
"name_audit": {
"new_name": "xxx1小程序",
"remaining_times": 2,
"status": 0,
"reason": ""
},
"app_avatar": "http://xxxx.png",
"avatar_audit": {
"new_name": "http://xxxx.png",
"remaining_times": 1,
"status": 1,
"reason": ""
},
"app_intro": "xxx",
"intro_audit": {
"new_name": "xxx",
"remaining_times": 5,
"status": 1,
"reason": ""
},
"subject": {
"name": "xxx",
"type": 1
},
"app_category": [
{
"category_id": "1,10",
"category_name": "电商-家具",
"status": 1,
"reason": ""
},
{
"category_id": "1,11",
"category_name": "电商-母婴",
"status": 2,
"reason": ""
},
...
]
}
上一篇:《开发管理》
下一篇:《担保支付接口》
仍有疑问? 前往社区提问