OkayAPI Docs


API Path: /api/App/Market_RightsAssign/GetUserRights

API Description: 获取单个用户权限列表,并根据菜单排序值从小到大返回。接口将会自动提取assign_user所在分组的全部权限。最多返回1000组。使用前请先安装用户权限分配插件

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
assign_userStringOptaionMAX: 32授权的用户,对应小白会员的UUID

API Debug

KEYREQUIREDVALUE
app_key *Required
assign_user Option

API Response

KEYTypeDescription
err_codeInt操作状态码,0成功,9插件表单未安装
err_msgString错误提示信息,err_code非0时参考此提示信息
itemsArray权限列表
items[].menu_keyString菜单项
items[].menu_titleString菜单名称
items[].menu_iconString菜单图标

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