更新达人信息
好热闹
目前支持更新: 大图、介绍、slogan、页面编辑信息(个性化设置)
Method and URL Structure
| Method |
Resource URL |
| POST |
/forum/expert_update/ |
Request Parameters
| Name |
Description |
Required |
Default |
| username |
用户名 |
YES |
|
| password |
密码 |
YES |
|
| optname |
更新选项 |
YES |
|
| value |
要更新的值 |
YES |
|
Optname List
| Name |
Description |
Default |
| info |
一次更新多个 |
|
| banner_uri |
图片地址 |
|
| profile |
介绍 |
|
| slogan |
slogan |
|
| customzation |
个性化设置 |
|
Request
{ "username":"username", "password":"password", "option":"info", "value":data,}
cURL Example
# 一次更新多个$ curl -H "Accept: application/json" -H "Content-Type: applcaitonjson" -X POST \--data '{ "username":"18516271364", "password":"123456", "optname":"info", "value": { "banner_uri":"uri", "slogan":"slogan", "profile":"profile", "customzation":"customzation", }}' \'http://www.haorenao.cn/froum/expert_update/'# 更新 slogan$ curl -H "Accept: application/json" -H "Content-Type: applcaitonjson" -X POST \--data '{ "username":"18512345678", "password":"123456", "optname":"slogan", "value":"slogan",}' \'http://www.haorenao.cn/forum/expert_update/'
JSON Response
| Name |
Description |
| ret |
标识是否成功。ok, 成功; failed, 失败 |
| reason |
失败原因 |
{ "ret":"ok", "reason":"",}