GET api/mobile/driverapppermission?driverId={driverId}&token={token}
Get the application permissions a driver has
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| driverId |
The driver id returned after login used for authentication |
unsigned integer |
Required |
| token |
The token returned after login used for authentication |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
DriverAppPermissionResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Permissions |
The permissions for this driver. If the permission is in the list they have permission to use that feature |
Collection of AppPermission |
None. |
Response Formats
application/json, text/json
Sample:
{
"Permissions": [
1,
1
]
}
application/xml, text/xml
Sample:
<DriverAppPermissionResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Permissions>
<AppPermission>OnOffShift</AppPermission>
<AppPermission>OnOffShift</AppPermission>
</Permissions>
</DriverAppPermissionResponseModel>