6 The subscriptions API is used to manage the podcast subscriptions of a client
13 The Subscriptions API defines the following resources ::
15 /<username>/subscriptions
16 /<username>/device/<device-id>/subscriptions
22 Upload the subscriptions for a device ::
24 PUT /<username>/device/<device-id>/subscriptions
25 Content-Tpe: application/json
30 The server can respond with the following status codes.
32 When a new device has been created ::
35 Link: <https://api.gpodder.net/<username>/device/<device-id>/subscription?since=0>; rel=changes
39 When the subscriptions have been processed immediatelly ::
42 Link: <https://api.gpodder.net/<username>/device/<device-id>/subscription?since=1234>; rel=changes
46 When the subscriptions have been accepted for later processing ::
49 Link: <https://api.gpodder.net/<username>/device/<device-id>/subscription?since=1234>; rel=changes
51 TODO: return change download address here?
54 Any status code >= 200 and < 300 should be considered a success.
62 Download subscriptions of a device ::
64 GET /<username>/device/<device-id>/subscriptions
65 Content-Type: application/json
68 Link: <https://api.gpodder.net/<username>/device/<device-id>/subscription?since=1234>; rel=changes
69 Content-Type: application/json
73 "add": [{ "url": "..."}, { ...}]
78 Download all of the users subscriptions ::
80 GET /<username>/subscriptions
81 Content-Type: application/json
84 Link: <https://api.gpodder.net/<username>/device/<device-id>/subscription?since=1234>; rel=changes
85 Content-Type: application/json
91 Subscription Change Upload
92 --------------------------
94 Upload changes to the subscriptions of a device ::
96 POST /<username>/device/<device-id>/subscriptions
97 Content-Tpe: application/json
103 Subscription Change Download
104 ----------------------------
106 Download changes to the subscriptions of a device ::
108 GET /<username>/device/<device-id>/subscriptions?since=<since>
109 Content-Tpe: application/json
112 Link: <https://api.gpodder.net/<username>/device/<device-id>/subscription?since=1234>; rel=changes
113 Content-Type: application/json
116 TODO: specify body...