Latest stories

get_admin_permissions

  • Inputs
{
    "user_id": "integer: id of admin users",
    "wall_id": "integer: id of Intended wall"
}

  • Errors
{
    "invalid_user": "user_id does not belong to admin",
    "must_login": "user must be login",
    "permission_denied": "user does not have permission"
}

  • Extra Description
Returns permissions of the admin by admin's user_id

  • Sample
  • Url:
https://api.pantel.me/a/get_admin_permissions?wall_id=-1000918&user_id=1002784
  • Output:
                                {
    "result": [
        {
            "id": 37,
            "name": "edit_wall",
            "section": "all"
        }
    ],
    "status": "success",
    "time": 1548061274.999671
}