#### 编码方式
~~~
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}]
}
}
~~~
