„NUKI DEVELOPER | Nuki Bridge HTTP API“ ändern
parent
1ffa4226ad
commit
da62de51fb
@ -153,4 +153,20 @@ Possible doorsensor states (used in Endpoints below).
|
||||
|
||||
|
||||
## 5. Endpoints
|
||||
### /auth
|
||||
### /auth
|
||||
<table>
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>http://192.168.1.50:8080/auth</td>
|
||||
</tr>
|
||||
<td>Usage</td>
|
||||
<td>Enables the api (if not yet enabled) and returns the api token. If no api token has yet been set, a new (random) one is generated. When issuing this API-call the bridge turns on its LED for 30 seconds. The button of the bridge has to be pressed within this timeframe. Otherwise the bridge returns a negative success and no token.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rawspan="3">Response</td>
|
||||
<td colspan="2">JSON list containing the success of the authorization</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>token</td>
|
||||
<td>The api token</td>
|
||||
</table>
|
Loading…
x
Reference in New Issue
Block a user