4 .. _api-device-data-set:
9 .. http:post:: /api/2/devices/(username)/(deviceid).json
10 :synopsis: Sets the name and type of the device.
12 * Requires HTTP authentication
15 The device ID is generated by the client application to identify itself in
16 API requests. The name is used to display a human readable identifier to
17 the user on the webservice. Only the keys that are supplied will be
24 POST /api/2/devices/a-user/somedevice-123.json
27 "caption": "gPodder on my Lappy",
31 :param username: the username for which device data should be updated
32 :param deviceid: see :ref:`devices`
33 :<json string caption: The new human readable label for the device
34 :<json string type: he type of the device. Possible values: desktop, laptop, mobile, server, other
43 .. http:post:: /api/2/devices/(username).json
44 :synopsis: list the user's devices
46 * Requires HTTP authentication
49 Returns the list of devices that belong to a user. This can be used by the
50 client to let the user select a device from which to retrieve
62 "caption": "gPodder on my Lappy",
73 "id": "phone-au90f923023.203f9j23f",
74 "caption": "My Phone",
80 :param username: the username for which the devices should be returned
83 .. _api-device-updates:
88 .. http:get:: /api/2/updates/(username)/(deviceid).json
89 :synopsis: returns episode and subscription updates for the given device
91 * Requires Authentication
103 "title": "PaulDotCom Security Weekly",
104 "url": "http://pauldotcom.com/podcast/psw.xml",
105 "description": "PaulDotCom Security Weekly Podcast with Paul, Larry, Mick, Carlos, and special guests!",
107 "logo_url": "http://pauldotcom.com/images/psw-logo-sm.png"
108 "website": "http://pauldotcom.com/",
109 "mygpo_link": "http://gpodder.net/podcast/11194",
113 "remove": ["<URL3>"],
117 "title": "TWiT 245: No Hitler For You",
118 "url": "http://www.podtrac.com/pts/redirect.mp3/aolradio.podcast.aol.com/twit/twit0245.mp3",
119 "podcast_title": "this WEEK in TECH - MP3 Edition",
120 "podcast_url": "http://leo.am/podcasts/twit",
121 "description": "[...]",
122 "website": "http://www.podtrac.com/pts/redirect.mp3/aolradio.podcast.aol.com/twit/twit0245.mp3",
123 "mygpo_link": "http://gpodder.net/episode/1046492"
124 "released": """2009-12-12T09:00:00"
125 "status": "(new|play|download|delete)"
129 "timestamp": <timestamp>
132 :query since: ``timestamp`` when updates have last been retrieved
133 :query bool include_actions: Default: false, since 2.10
135 The response will have the following form and will contain
137 * a list of subscriptions to be added, with URL, title and descriptions
138 * a list of URLs to be unsubscribed
139 * a list of updated episodes
140 * the current timestamp; for retrieving changes since the last query
142 If include_actions is set to true, each updated episode (with a state other
143 than new) will contain an additional property action which includes
144 the user's latest episode action reported for this episode. The actions
145 have the same format as in :ref:`episode-action-types`.