I’m creating on-demand smart lock authorizations (personalized access codes) on each booking. I guess similarly to many other developers.
I’m using the PUT /smartlock/${smartlockId}/auth
api endpoint for this.
This API endpoint is by its definition async, so it actually completes earlier than the authorization is actually created on the smart lock.
My question is: how can I be sure if and when the authorization has been enabled on the smart lock?
- Should I be calling
GET /smartlock/${smartlockId}/auth
periodically and check whether the name of my authorization has appeared in the list? If yes, how often can I call it, without haivng adverse side effects (such as batter depletion on the lock)? - Will Nuki’s Web API try to deliver the authorization to the smart lock indefinitely, or is there a ceratin “timeout” after which it gives it up and I have to repeat the PUT operation myself?
Thank you for any help!