Managing user subscriptions =========================== Listing subscriptions ---------------------- Send a GET request to ``https://pushitgood.eu/v1/users//subscriptions`` to list a users subscriptions. Send your client id and apikey using HTTP basic authentication. Example usage with curl: .. code:: sh curl --silent -u "$CLIENT_ID:$APIKEY" https://pushitgood.eu/v1/$UID/subscriptions .. code:: javascript { "subscriptions": [ { "uid": "eKvdJ92b", "device_name": "firefox on linux", "sid": "eCS6emq2AhvpWA", "links": { "delete": { "method": "DELETE", "href": "https://pushitgood.eu/v1/subscriptions/eCS6emq2AhvpWA" } } } ] } Removing subscriptions ---------------------- To delete a user's subscription, call the listed delete link. Again, you must authenticate with HTTP basic authentication: .. code:: sh curl --silent -X DELETE -u "$CLIENT_ID:$APIKEY" https://pushitgood.eu/v1/subscriptions/eCS6emq2AhvpWA This endpoint returns an empty response (HTTP status 204) to indicate success, or a 404 if the subscription does not exist.