2.4. Sensor Subscriptions¶
Sensor subscriptions are handled using the /subscribe
URL.
2.4.1. Get Sensor Subscriptions¶
To view sensors that the current user is subscribed to:
URL | http://wotkit.sensetecnic.com/api/v1/subscribe |
Privacy | Private |
Format | json |
Method | GET |
Returns | 200 OK if successful. A JSON object in the response body containing sensors subscribed by the user. |
2.4.2. Subscribe¶
To subscribe to a non-private sensor or private sensor owned by the current user:
URL | http://wotkit.sensetecnic.com/api/v1/subscribe/{sensorname} |
Privacy | Private |
Format | json |
Method | PUT |
Returns | 204 No Content if successful. |
2.4.3. Unsubscribe¶
To unsubscribe from a sensor:
URL | http://wotkit.sensetecnic.com/api/v1/subscribe/{sensorname} |
Privacy | Private |
Format | json |
Method | DELETE |
Returns | 204 No Content if successful. |