POST api/webhook/verifyaccess
Überprüft, ob die Zugangsanfrage genehmigt werden kann.
Request Information
URI Parameters
None.
Body Parameters
Enthält Informationen über die Zugangsanfrage.
ComydoPayload| Name | Description | Type | Additional information |
|---|---|---|---|
| device_id |
Identifiziert das anfragende Gerät durch eine eindeutige 12-stellige HEX-Zeichenfolge. |
string |
None. |
| content |
Enthält den gescannten Code als Klartext. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"device_id": "sample string 1",
"content": "sample string 2"
}
application/xml, text/xml
Sample:
<ComydoPayload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IBook.Comydo.Models"> <Content>sample string 2</Content> <DeviceId>sample string 1</DeviceId> </ComydoPayload>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ComydoResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success |
Enthält das Ergebnis der Zugangsanfrage. |
boolean |
None. |
| error |
Enthält zusätzliche Informationen über den Fehler (Optional). |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"error": "sample string 2"
}
application/xml, text/xml
Sample:
<ComydoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IBook.Comydo.Models"> <Error>sample string 2</Error> <Success>true</Success> </ComydoResponse>