Remote Access Authorization
This topic describes how to remotely authorize a user's access in real-time and with user interaction, i.e. the user's name will be displayed on the screen and a picture as well if desired.
POST /remote_user_authorization.fcgi
Parameters
Field | Type | Description |
---|---|---|
event | int | Type of event, it can be:
|
user_id | int | User ID, in case of identification. |
user_name | string | User name, in case of identification. |
user_image | bool | Identified user has a photo or not. |
portal_id | string | Corresponding Portal ID. |
actions | Array of JSON Objects | Actions that must be performed by the device. Example: [ {"action":"door", "parameters":"door=1"}, {"action":"door", "parameters":"door=2"} ] |
Response
- This request has no response.
Example iDAccess/iDFit/iDBox:
$.ajax({
url: "/remote_user_authorization.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify(
{
event:7,
user_id:6,
user_name:"Brian Cox",
user_image:false,
portal_id:1,
actions:[ {action: "door", parameters: "door=1"} ]
}
)
});
Example iDFlex/iDAccess Pro/iDAccess Nano:
$.ajax({
url: "/remote_user_authorization.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify(
{
event:7,
user_id:6,
user_name:"Brian Greene",
user_image:false,
portal_id:1,
actions:[ {action: "sec_box", parameters: "id=65793, reason=1"} ]
}
)
});
Example turnstile iDBlock:
$.ajax({
url: "/remote_user_authorization.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify(
{
event:7,
user_id:6,
user_name:"Neil deGrasse Tyson",
user_image:false,
portal_id:1,
actions:[ {action: "catra", parameters: "allow=clockwise"} ]
}
)
});