| GET | /mobileb/keycodes/all | Gets a list of all key codes for all smartspaces that a mobile businiess user has access to. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | List<ThingKeyCodeView> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ThingId | form | Guid | No | |
| ThingName | form | string | No | |
| SmartspaceId | form | Guid? | No | |
| SmartspaceName | form | string | No | |
| KeyLockType | form | KeyLockType? | No | |
| AccessKeyCode | form | string | No | |
| AccessLevel | form | string | No |
| Name | Value | |
|---|---|---|
| Unsupported | 0 | |
| QRCode | 1 | |
| RFID | 2 | |
| KeyPad | 3 | |
| NFC | 4 | |
| Bluetooth | 5 | |
| VirtualCard | 6 | |
| AccessCard | 7 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /mobileb/keycodes/all HTTP/1.1 Host: api.4spaces.io Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"data":[{"thingId":"00000000000000000000000000000000","thingName":"String","smartspaceId":"00000000000000000000000000000000","smartspaceName":"String","keyLockType":0,"accessKeyCode":"String","accessLevel":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}