#### 编码方式
~~~
UTF-8
~~~
## 接口定义
+++
post:http://www.tuling123.com/v1/robot/profile
*string:apikey=要升级的机器人apikey#apikey
*object:data={}#请求内容
nickname=turing#机器人名称
gender=M/F#机器人性别
int:age=22#机器人年龄
image=http://图像地址#头像地址
father=机器爸爸#父亲姓名
mother=机器妈妈#母亲姓名
like=聊天#喜欢的事
dislike=被冤枉#不喜欢的事
location=机器人星球图灵市#家庭住址
long:timestamp=100000#加密模式字段
token=token#验证字符串 计算方法 请查看[接口约定](http://doc.tuling123.com/channel/231505)
<<<
success
{
"apikey":" apikey ",
"data":{
"nickname":"hellorobot",
"gender":"F",
"age":22,
"image":"http://图像地址",
"father":"father",
"like":"like",
"mother":"mother",
"dislike":"dislike",
"location":"location"
},
"timestamp": timestamp,
"token":" token "
}
<<<
error
{
"code": 301,
"text": "数据格式不正确"
}
+++
#### 请求示例
>[info] 请求参数
~~~
{
"apikey":" apikey ",
"data":{
"nickname":"hellorobot",
"gender":"F",
"age":22,
"image":"http://图像地址",
"father":"father",
"like":"like",
"mother":"mother",
"dislike":"dislike",
"location":"location"
},
"timestamp": timestamp,
"token":" token "
}
~~~
>[success] 返回参数
~~~
{
code: 0,
data:{
"nickname":"nickname",
"gender":"M/F",
"age":"age",
"image":"url",
"father":"father",
"like":"like",
"mother":"mother",
"dislike":"dislike",
"location":"location"
}
}
~~~
