#### 編碼方式
~~~
UTF-8
~~~
## 接口定義
+++
post:http://www.tuling123.com/v1/robot/ability
*string:apikey=要升級的機器人apikey#apikey
*object:data={}#請求內容
array:list=[]#功能列表
bool:appname=true#具體功能的開關
long:timestamp=100000#加密模式字段
token=token#驗證字符串 計算方法 請查看[接口約定](http://doc.tuling123.com/channel/231505)
<<<
success
{
code:0,
data:{
list:[
{"xiaohua":true},
{"erge":false}
]
}
}
<<<
error
{
"code": 301,
"text": "數據格式不正確"
}
+++
#### 官網能力對應表
|功能列表| 英文名稱(功能列表對應字段)|
|---|---|
|笑話大全 |joke|
|故事大全 | story |
|成語接龍| idiom_game|
|吉兇查詢| fortune|
|新聞資訊| news|
|星座運勢| constellation|
|生活百科| encyclopedias|
|圖片搜索| picture|
|天氣查詢| weather|
|菜譜大全| cookbook|
|快遞查詢| express|
|數字計算| number_count|
|航班查詢| flight|
|列車查詢| train|
|日期查詢| date|
|問答百科| question_answer|
|知識庫| knowledgebase|
|中英互譯| translation|
|附近餐廳| nearby_restaurant|
|附近酒店| nearby_hotel|
|實時路況| traffic|
|腦筋急轉彎| brain_twists|
|果蔬報價| fruit_price|
|汽油報價| oil_price|
|影視搜索| movie_search|
|股票查詢| share_search|
|公交查詢| transit_search|
|路程報價| distance_price|
|租房信息| rental|
|歇后語| xiehouyu|
|繞口令| tongue_twister|
|順口溜| jingle|
|城市郵編| postcode|
|聊天對話| chat|
|限號查詢| limit_number|
|藏頭詩| acrostic|
|雙色球| shuangseqiu|
|兒歌| song|
|詩詞| poetry|
>[danger]注:智能FAQ/智能客服應用場景下的機器人目前只支持聊天對話和知識庫功能。
#### 特殊返回錯誤碼
| code | 說明 |
| --- | --- |
| 501| 該功能不存在 |
#### 請求示例
>[info] 請求參數
~~~
{
"apikey":" apikey ",
"data":{
"list":[
{"news":false},
{"jixiong":false}
]
},
"timestamp": timestamp,
"token":" token "
}
~~~
>[success] 返回參數
~~~
{
code:0,
data:{
list:[
{"appname":true/false},
{"appname":true/false}]
}
}
~~~