Obtain Guest Bluetooth Unlocking Command

https://api.orbitaiot.com/open/v1/dev/guestBlueOpen/{tid}

 

1. HTTP Request Method and Example

POST /open/v1/dev/guestBlueOpen/151
Host: api.orbitaiot.com
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNiIsImp0aSI6Ijg3MjYxNmExMGFlYzdmMmNlY2RhM2NiOGRhNWU0YTVhZTI1MjdmYmY5OGI1MzFiZDY0ZTkxYjBhYjQ3MTRmY2Q5MTNkNmRmNTQzYjllYmU4IiwiaWF0IjoxNzQxNjgyMTI3LCJuYmYiOjE3NDE2ODIxMjcsImV4cCI6MTc0NDM2MDUyNywic3ViIjoiNyIsInNjb3BlcyI6WyIqIl19.cDY5CiwW2AvngZdv3FvWP5pd9bm3gZ47fOh-EEtLKDpUBOxG8weKAVpPu6-gczudGHSrJpxdIipgbkNTGUOOMSMZNSQ493SoNi_HWFVpWjbHQIVYWHv5-zr-h8Q3zyKHsZkHf4isqt0d3t8DL3IsFgT-ZQ5bASNwbYWzYzL4foR_9mSQXErfmt6PVY0hFfaxLAvrXYg_zAksEDHSrhpBGP7KadrX9WQALXWpg4eyv1VlQcJp51H9AOMAM0UG-DYKDTms2ShzKWTb0CeJ8no4wpKNaTsMhHrFXZvhM8As1C4Wpl9tYhiLUYR7wVgSM4uyOns-6frZw2mA8HK_XKkSYZNznzOajNDj3fDEzPjxmlJS2MRTNUQDLAJEbqrzi-crM-h4PWlhApheR7EnM1zb8b0Ga1kwPi_IUmdCRL1_GNAktdusLamX9cz-Qx3aXelomqET9IvycTBZ_qmr_f_aWVkJzGUyFS4neQk7gK7MxiVixhi39EsnFBOlmR7vyPFrTpeZtgdye8UQmja6JirThEzc_6i0HJz78O4i9HXslbMzCakXN7P07Ts6VMX_YQD0ykLNtZZ71kUSrQ6M78alM110nEM2GwPUrHE2CXh9QgoyFQ8C1KCwGLFWsRR3_jJ_5wYoSiix83c-H9p90t2suwbEdLg7gl7q9JeY4rpTuHA
cache-control: no-cache
{  "antilock_permission":1,    "start_time":0,    "end_time":0}

2.Parameter Description

Headers Parameter

KeyTypeRequestVlues
Content-Type
StringYapplication/json
Authorization
StringYBearer [access_token value]


Body Parameter

NameTypeRequiredDescription
antilock_permissionIntYPermission to unlock the deadbolt: 0 - None; 1 - Yes
start_timeIntYStart Time (Timestamp): Pass the check-in start time. If an access card is issued, convert it to a timestamp consistent with the card issuance start time
end_timeIntYEnd Time (Timestamp): Pass the check-out time. If an access card is issued, convert it to a timestamp consistent with the card's check-out time.
is_card
IntYSuspend or not  0 :Do not suspend(The previous guest Bluetooth ekey is available) 1:Suspend(The previous guest Bluetooth ekey is not available)

3. Return Parameters and Examples

Name
Type
Description
code
Int
data
String
message
String
binStringAfter obtaining the bin, Bluetooth unlocking is required, connect the Bluetooth device, and write it to the current feature value of the Bluetooth door lock


{    
         "code": 0,   
         "message": "",    
         "data": {        "bin": "fd8801020101c5fc0000002f000031e48f149263c327a8ec4794cceba44408472975f2cf89b195b2cea82f6d2bbeabf7fe"   
                     }
}



4. Interface Example