.. _api_sensor_subs: Sensor Subscriptions ===================== Sensor subscriptions are handled using the ``/subscribe`` URL. .. _get-sub-label: .. index:: Sensor Subscriptions Get Sensor Subscriptions ---------------------- To view sensors that the current user is subscribed to: .. list-table:: :widths: 10, 50 * - **URL** - :wotkit-api:`subscribe` * - **Privacy** - Private * - **Format** - json * - **Method** - GET * - **Returns** - Appropriate HTTP status code; OK 200 - if successful | .. _sub-label: .. index:: Subscribe to a Sensor Subscribe --------- To subscribe to a non-private sensor or private sensor owned by the current user: .. list-table:: :widths: 10, 50 * - **URL** - :wotkit-api:`subscribe/{sensorname}` * - **Privacy** - Private * - **Format** - json * - **Method** - PUT * - **Returns** - HTTP status code; No Content 204 if successful | .. _unsub-label: .. index:: Unsubscribe from a Sensor pair: Subscribe to a Sensor; Unsubscribe from a Sensor Unsubscribe ----------- To unsubscribe from a sensor: .. list-table:: :widths: 10, 50 * - **URL** - :wotkit-api:`subscribe/{sensorname}` * - **Privacy** - Private * - **Format** - json * - **Method** - DELETE * - **Returns** - HTTP status code; No Content 204 if successful |