OkayAPI Docs


API Path: /api/App/User/UpdateExtInfo

API Description: 开发者可以自定义存放更多用户信息,如:昵称、头像、年龄、性别等。当更新的信息不存在时,则会先添加。请注意,只支持一层扩展信息。

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
uuidStringRequiredMIN: 32;MAX: 32UUID,全局唯一用户ID
tokenStringRequiredMIN: 64;MAX: 64会话凭证
ext_infoArrayJSON FormatRequired待更新的用户扩展信息,需要JSON编码后传递。格式:ext_info={"扩展字段名":"值"},可以同时更新多个字段。JSON在线解析及格式化验证

API Debug

KEYREQUIREDVALUE
app_key *Required
uuid *Required
token *Required
ext_info *Required

API Response

KEYTypeDescription
err_codeInt操作码,0更新成功,1用户不存在,或者已被封号
err_msgString错误提示信息,err_code非0时参考此提示信息
ext_infoObject成功更新后的用户扩展信息,以便核对

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error