QA回调接口Demo(json)(推荐)
POST
/thirdQa
这是示例接口,您需要自己开发一个类似的接口用来接收消息回调。请看【QA回调接口规范】
请求参数
Body 参数application/json
object {0}
示例
{
"spoken": "你好",
"rawSpoken": "@me 你好",
"receivedName": "仑哥",
"groupName": "测试群1",
"groupRemark": "测试群1备注名",
"roomType": 1,
"atMe": true,
"textType": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.worktool.ymdyes.cn/thirdQa' \
--header 'Content-Type: application/json' \
--data-raw '{
"spoken": "你好",
"rawSpoken": "@me 你好",
"receivedName": "仑哥",
"groupName": "测试群1",
"groupRemark": "测试群1备注名",
"roomType": 1,
"atMe": true,
"textType": 1
}'
返回响应
🟢200成功
application/json
Body
code
integer
0 调用成功 -1或其他值 调用失败并回复message
message
string
对本次接口调用的信息描述
data
object
必需
type
integer
5000 回答类型为文本
info
object
回答结果集合
示例
{
"code": 0,
"message": "string",
"data": {
"type": 0,
"info": {
"text": "string"
}
}
}