OkayAPI Docs
API Params
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
username | String | Required | MIN: 1;MAX: 50 | 会员账号,开发者应用的会员,非开发者自己账号。进入会员列表可查看自己的应用会员。 | |
new_password | String | Required | MIN: 32;MAX: 32 | 新密码,须md5后传递,保持全部小写 | |
admin_uuid | String | Required | MIN: 32;MAX: 32 | 管理员的UUID,需要先在小白开放平台-会员列表-角色设置-角色-管理员,设置用户为管理员,然后传入用户的UUID | |
admin_token | String | Required | MIN: 64;MAX: 64 | 管理员的会话凭证,确保你是管理员。 |
API Debug
KEY | REQUIRED | VALUE |
---|---|---|
app_key | *Required | |
username | *Required | |
new_password | *Required | |
admin_uuid | *Required | |
admin_token | *Required |
API Response
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0修改成功;1密码修改失败,不能与原来密码相同,或账号不存在;2出于安全考虑,不能重置任何管理员密码 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
HTTP Response Code
HTTP Status Code | Description |
---|---|
Http Status = 200 | Success |
Http Status = 400 | Illegal-Params |
Http Status = 401 | Illegal-Token |
Http Status = 402 | IP-Banned |
Http Status = 404 | API-NOT-Exsits |
Http Status = 406 | Illegal-APPKEY |
Http Status = 407 | APPKEY-Expired-Out |
Http Status = 408 | APPKEY-Busy |
Http Status = 409 | Illegal-Sign |
Http Status = 413 | API-Traffic-NOT-Enough |
Http Status = 415 | API-LOCKED |
Http Status = 500 | Internal-Server-Error |