#### 編碼方式
~~~
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"
}
}
~~~