39 lines
1.5 KiB
Markdown
39 lines
1.5 KiB
Markdown
文档地址
|
||
|
||
[平台简介 | 微信开放文档](https://developers.weixin.qq.com/doc/aispeech/platform/INTRODUCTION.html)
|
||
|
||
第三方服务调用
|
||
|
||
[第三方服务接口调用 | 微信开放文档](https://developers.weixin.qq.com/doc/aispeech/platform/3rdparty_api.html)
|
||
|
||
指定的 URL 发起带有配置的参数的 GET 请求
|
||
|
||
返回格式
|
||
|
||
```
|
||
{
|
||
"err_code": 0, // 状态码,可在获得响应后区分下一步操作
|
||
"data_list": [
|
||
{ // 目前返回信息需要包裹在 `data_list` 中唯一对象内
|
||
"param_a": "content_a", // 参数,可在获得响应后填充进对应语义槽
|
||
"param_b": "content_b"
|
||
}
|
||
]
|
||
}
|
||
```
|
||
|
||
注意:需要在接口返回的 reponse-header中 ,添加 `Content-Type: application/json` 响应信息,否则在对话过程中, 机器人将不能正确接受接口返回值
|
||
|
||
请求的header字段
|
||
|
||
| header字段 | 描述 |
|
||
| --------- | ------------------------------------- |
|
||
| appid | 应用ID(string) |
|
||
| bid | 机器人唯一ID (int) |
|
||
| requestid | 请求唯一标识 |
|
||
| uid | 用户唯一标识,微信情景下,比如公众号、小程序则为对应应用的用户openid |
|
||
|
||
消息解密
|
||
|
||
[概述 | 微信开放文档](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/Message_encryption_and_decryption.html)
|