阿里云
发表主题 回复主题
  • 161阅读
  • 1回复

[干货分享]智能对话平台API如何使用?(1)

级别: 论坛粉丝
发帖
1296
云币
2596
md_aD  
;^lVIS%&{  
1. 问答服务API ,*a8]L  
]3xnq<  
#z-6mRB  
​ 问答服务的调用采用Restful API方式,服务内部不保存状态,所以调用和调用之间相互独立。调用API需要校验权限,详细说明见https://help.aliyun.com/document_detail/50410.html `Z>4}<~+  
​ 问答服务的输入为目前与用户对话的内容,输出是与输入最匹配的三个知识点,默认第一位最匹配的。 bV|:MW <Wv  
Sm;&2"  
注意:调用问答服务前,知识库必须先发布,可以在管控台点击“发布”按钮或调用 single:online 接口发布。 I<z /Y?  
"T?%4^:g  
6cVaO@/(  
m*  |3  
服务提供方式 k# ZO4  
='T<jV`evu  
oat*ORL  
协议URL方法参数
HTTPSnlsapi.aliyun.com/qasPOSTbody中的json字符串
ueZ`+g~gg  
zv||&Hi  
请求示例 KR%p*Nh+C  
F=Z|Ji#  
<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.     "version": "2.0",
  3.     "app_key": "nui-abcefghi",
  4.     "question": "你是谁?",
  5.     "optional": {"domains":"theme1;theme2;theme3","top":3}
  6. }
 r75,mX  
mWsVOf>g  
请求参数说明 Ui@Q&%b  
)MHvuk:I)  
>1T=Aw2Z.  
参数类型是否必须说明
versionString协议版本号,必须是2.0
app_keyString创建项目时返回的appId,加上”nui-“前缀
questionString问题
optional/domainsString主题列表,多个主题用分号隔开。如果设置了主题,就从这些主题中匹配答案,否则就从该用户的全部知识库匹配答案
optional/topInteger返回答案数量,默认3个
[m?eSq6e2b  
[mJc c  
返回结果示例 XWo:~\  
&sh %]o8  
<pre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "id": "921a3c8ac36c4df39dd714dd52344a53",
  3.   "success": true,
  4.   "error_code": "",
  5.   "error_message": "",
  6.   "answers": [
  7.     {
  8.       "question": "",
  9.       "answer": "",
  10.       "score": "",
  11.       "domain": "",
  12.       "optional": {}
  13.     },
  14.     {
  15.       "question": "",
  16.       "answer": "",
  17.       "score": "",
  18.       "domain": "",
  19.       "optional": {}
  20.     },
  21.     {
  22.       "question": "",
  23.       "answer": "",
  24.       "score": "",
  25.       "domain": "",
  26.       "optional": {}
  27.     }
  28.   ]
  29. }
jAfUz7@  
]L^X}[SH  
返回参数说明 }?$d~]t)  
K:c5Yq^  
(5]<t&M  
参数类型是否必须说明
idString请求id
successBoolean请求是否处理成功
error_codeString如果失败,对应的错误
error_messageString错误信息
answers[]/questionString知识库中匹配到的问题
answers[]/answerString知识库中匹配到的答案
answers[]/scoreFloat该答案对应的得分(0-1.0之间),分越高,答案越准确
answers[]/domainString该条答案所在的主题
answers[]/optionalObject附加数据,不同的业务定义己的数据格式
PEW^Vl-6q  
-^=gQ7f9  
2. 知识库管理API 0V`s 3,k  
u3(zixb  
q+.DZ @  
u7ZSs-LuHw  
2.1 通用接口 8fKt6T  
):; &~  
H{ p   
服务提供方式 'e_^s+l)a  
协议URL方法参数
HTTPSnlsapi.aliyun.com/manage/qasPOSTbody中为json字符串,query中需要一个action参数
~cbq5||  
请求参数说明 h-+9Bv]  
参数名类型示例备注
actionStringprojects:list全小写,在query中,https://nlsapi.aliyun.com/manage/qas?action=projects:list
String{“offset”:0, “pageSize”:10}在body中,action对应的参数组
I7ZY9W(S  
返回结果为json格式,所有接口返回结果格式一致,唯一区别为data里面的内容。 6T! *YrS  
参数类型是否必须说明
requestIdString唯一请求id
resultCodeInteger错误码
resultMessageString返回信息
dataObject每个业务的返回数据
vz #VW  
错误码为调用返回的resultCode,具体数值如下: R$X1Q/#md  
错误码说明
0成功
1登录超时
2输入参数错误
3服务器内部错误
4项目名重复
5项目个数达到最大
6资源不存在
100token错误
v]& )+0  
58\Rl  
2.2 具体调用参数说明 vQ>x5\r5O_  
Y!c RzQ  
.0kltnB  
}J73{  
2.2.1 创建项目 DygMavA.  
X<dQq`kZ  
x9k(mn%,  
Action: projects:create _eb:"(m  
请求参数说明 ) (unL`y  
参数类型是否必须说明
nameString项目名,最大长度为40
descriptionString项目描述,最大长度为160
6My=GByC  
请求示例<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "name":"测试项目",
  3.   "description":"这是一个测试项目"
  4. }
MlaViw  
返回结果<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId": "xxxxx-xxx-xxx",
  3.   "resultCode": 0,
  4.   "resultMessage": "OK",
  5.   "data": {
  6.     "id": 1,
  7.     "name": "测试项目",
  8.     "description": "这是一个测试项目",
  9.     "appId": "wdhlqi9a",
  10.     "createTime": "2010-11-10 13:46:00"
  11.   }
  12. }
2a8ZU{wjn  
返回结果说明 ,*$L_itL  
参数类型是否必须说明
idLong项目id
nameString项目名
descriptionString项目描述
appIdString项目appId,加上”nui-“前缀即app key
createTimeString项目创建时间
fgIzT!fyz  
F$<>JEdX  
2.2.2 列出项目 <@6K(  
!`"@!  
A]L;LkEM  
Action: projects:list (jd)sf6Tj[  
请求参数: OD7tM0Wn  
参数类型是否必须说明
offsetInteger从第几个项目开始列出
pageSizeInteger每页个数
CB_ww=  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "offset":0,
  3.   "pageSize":10
  4. }
c]LE9<G  
返回结果:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId": "xxxxx-xxx-xxx",
  3.   "resultCode": 0,
  4.   "resultMessage": "OK",
  5.   "data": {
  6.     "total": 100,
  7.     "offset": 0,
  8.     "pageSize": 10,
  9.     "items": [
  10.       {
  11.         "id": 1,
  12.         "name": "test1",
  13.         "description": "test1 desc text",
  14.         "appId": "wdhlqi9a",
  15.         "createTime": "2010-11-10 13:46:00"
  16.       },
  17.       {
  18.         "id": 2,
  19.         "name": "test2",
  20.         "description": "test2 desc text",
  21.         "appId": "wdhlqi9a",
  22.         "createTime": "2010-11-10 13:46:00"
  23.       }
  24.     ]
  25.   }
  26. }
dZcRLLR  
返回结果说明 6$$4!R-  
参数类型是否必须说明
idLong项目id
nameString项目名
descriptionString项目描述
appIdString项目appId
createTimeString创建时间
totalInteger项目总数
2 Z K:S+c  
qPqpRi  
2.2.3 更新项目 IaMZPl  
V'?bZcRr~  
]S;^QZ  
Action: projects:update Pu/X_D-#Gi  
请求参数: #^%HJp^  
参数类型是否必须说明
idLong项目id
nameString项目名,最大长度40
descriptionString项目描述,最大长度160
VqGmZ|+8  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "id":1,
  3.   "name":"test",
  4.   "description":"test description"
  5. }
<pre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId": "xxxxx-xxx-xxx",
  3.   "resultCode": 0,
  4.   "resultMessage": "OK",
  5.   "data": {
  6.     "id": 1,
  7.     "name": "test1",
  8.     "description": "test1 desc text",
  9.     "appId": "wdhlqi9a",
  10.     "createTime": "2010-11-10 13:46:00"
  11.   }
  12. }
9n4vuBgv  
返回结果说明: qd$Y"~Mco  
参数类型是否必须说明
idLong项目id
nameString项目名
descriptionString项目描述
appIdString项目appId
createTimeString创建时间
=v^LShD2^  
;[@);-9q  
2.2.4 删除项目 mU0j K@^&M  
wJ#fmQXKJ5  
!bs{/?  
Action: projects:delete GF 4k  
注:该操作会删除项目相关的所有信息,包括主题、知识点等,请谨慎操作。 RhwqAok|lj  
请求参数: yF2|w=!  
参数类型是否必须说明
idLong项目id
^w]N#%k\H  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "id":1
  3. }
tuH8!.  
返回结果:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId":"xxxx-xxx-xxx",
  3.   "resultCode":0,
  4.   "resultMessage":"OK",
  5.   "data":""
  6. }
7> ~70  
 uP|Py.+  
2.2.5 获得项目详细信息 Mn$w_Z?  
.Ukejx  
;k1 \-  
Action: projects:get DD 8uG`<  
请求参数: ]?KTw8j}  
参数类型是否必须说明
idLong项目id
2?vjj:P+h  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "id":1
  3. }
+c4-7/kE  
返回结果:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId": "xxxxx-xxx-xxx",
  3.   "resultCode": 0,
  4.   "resultMessage": "OK",
  5.   "data": {
  6.     "id": 1,
  7.     "name": "测试项目",
  8.     "description": "这是一个测试项目",
  9.     "appId": "wdhlqi9a",
  10.     "createTime": "2010-11-10 13:46:00"
  11.   }
  12. }
j"G1D-S:  
返回结果说明: wxC&KrRF  
参数类型是否必须说明
idLong项目id
nameString项目名
descriptionString项目描述
appIdString项目appId
createTimeString创建时间
|#_IAN  
4}0DEH.Vx  
2.2.6 创建主题 2AYV9egZ  
4)- ?1?)  
yC%zX}5  
Action: theme:create %Xe#'qNq)  
请求参数: {WokH;a/  
参数类型是否必须说明
nameString主题名,最大长度30
descriptionString描述,最大长度50
projectIdLong项目id
ZiR },F/  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "name":"test",
  3.   "description":"desc",
  4.   "projectId":1
  5. }
M$Sq3m`{!  
返回结果:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId":"xxxx-xxx-xx",
  3.   "resultCode":"0",
  4.   "resultMessage":"OK",
  5.   "data": {
  6.     "id":1,
  7.       "name":"test",
  8.       "description":"desc",
  9.       "projectId":1
  10.   }
  11. }
8&[Lr o9  
返回结果说明 "&$ [@c  
参数类型是否必须说明
idLong主题id
nameString主题名称
descriptionString主题描述
projectIdLong项目id
7Iz%Jty  
q,Oj  
2.2.7 列出主题 qDSZ:36  
hY*ylzr83  
,=TY:U;?  
Action: theme:list l]g /rs  
请求参数: +/"Ws '5E  
参数类型是否必须说明
offsetInteger从第几个主题开始列出
pageSizeInteger每页个数
projectIdLong项目id
=2Vs))>Y  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "offset":0,
  3.   "pageSize":10,
  4.   "projectId":1
  5. }
K)ZW1d;  
返回结果:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId":"xxxx-xxx-xx",
  3.   "resultCode":0,
  4.   "resultMessage":"OK",
  5.   "data":{
  6.     "total":100,
  7.     "offset":0,
  8.     "pageSize":10,
  9.     "items":[
  10.       {
  11.         "id":1,
  12.         "name":"test1",
  13.         "description":"desc1",
  14.         "projectId":1
  15.       },
  16.       {
  17.         "id":2,
  18.         "name":"test2",
  19.         "description":"desc2",
  20.         "projectId":1
  21.       }
  22.     ]
  23.   }
  24. }
c> SFt tbU  
返回结果说明: bQ%6z}r  
参数类型是否必须说明
idLong主题id
nameString主题名称
descriptionString主题描述
projectIdLong项目id
totalInteger总主题数
/z=xEnU#  
;`")3~M3*  
2.2.8 更新主题 ?"hrCEHV{9  
!O*'mX  
f`;y "ba  
Action: theme:update F.rNh`44  
请求参数: mB\)Q J.%  
参数类型是否必须说明
nameString主题名,最大长度30
descriptionString描述,最大长度50
projectIdLong项目id
idLong主题id
 dmR>u  
请求示例:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "id":1,
  3.   "name":"test",
  4.   "description":"desc1",
  5.   "projectId":1
  6. }
D,3Kx ^  
返回结果:<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "requestId":"xxxx-xxx-xx",
  3.   "resultCode":"0",
  4.   "resultMessage":"OK",
  5.   "data": {
  6.     "id":1,
  7.       "name":"test",
  8.       "description":"desc",
  9.       "projectId":1
  10.   }
  11. }
E{wnhsl{  
返回结果说明 cVV@MC  
参数类型是否必须说明
idLong主题id
nameString主题名称
descriptionString主题描述
projectIdLong项目id
61aU~w11a  
xM+_rU M|h  
级别: 新人
发帖
7
云币
16
只看该作者 沙发  发表于: 11-27
Re智能对话平台API如何使用1
厉害!!!  !!! 楼主加油 !!!
发表主题 回复主题
« 返回列表上一主题下一主题

限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
验证问题: 27 - 0 = ?
上一个 下一个