Product name
Nuki Bridge
Summary
In the Bridge HTTP API, pass the id
of the newly created callback in the response to the /callbackAdd
call.
Features
Instead of returning only {"success": true}"
in the response body, return {"success": true, "id": 0}
(or whatever the id
is).
Reason
Before quitting my programme, I want to cancel the subscription. callbackRemove
needs the id
as parameter. Now I need to call callbackList
and match the url
with my server’s url before I know which subscription to remove.
Examples
Any programme that creates a callback and wants to remove it when shutting down the callback server.