Retrieves business details
SUPPORTED METHODS:
GET
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
user (accepted) | integer | User id |
UPDATE
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
group_perms (required) | varchar | perm[0]: user id (integer) perm[1]: Can add accounts (integer/boolean) //0(false): Can not add accounts //1(true) : Can add accounts perm[2]: Can write (integer/boolean) //0(false): Can not write //1(true) : Can write perm[3]: Can read (integer/boolean) //0(false): Can not read //1(true) : Can read perm[4]: Can access all accounts (integer/boolean) //0(false): Can not access all accounts //1(true) : Can access all accounts |
DOCUMENTATION
GET
Retrieves an employees group perms.
If you specify id, retrieve selected employees perms.
Level 5 is required (all users can fetch this module)
--
Example Request:
{
"module":"admin.group_perms",
"method":"GET",
"request":{
"user":"15553"
}
}
Example Response:
{
"status":1,
"data":{
"user":"15553",
"read":"1",
"write":"1",
"can_add_account":"1",
"can_access_account":"1",
"updated":"2012-06-02 11:46:44",
"id":"15553",
"name":"John Smith"
},
"token":"xxxxxxx"
}
UPDATE
Updates an employees group perms.
Level 5 is required (all users can fetch this module)
--
Example Request:
{
"module":"admin.group_perms",
"method":"GET",
"request":{
"group_perms":"15553,0,0,0,0,5112,0,0,0,0"
//In this example we updated two employees perms
}
}
Example Response:
{
"status":1,
"data":true,
"token":"xxxxxxx"
}