RSS Feeds¶
-
class
Tribler.Core.Modules.restapi.channels.channels_rss_endpoint.
BaseChannelsRssFeedsEndpoint
(session, cid)[source]¶
-
class
Tribler.Core.Modules.restapi.channels.channels_rss_endpoint.
ChannelModifyRssFeedEndpoint
(session, cid, feed_url)[source]¶ This class is responsible for methods that modify the list of RSS feed URLs (adding/removing feeds).
-
render_DELETE
(request)[source]¶ -
DELETE
/channels/discovered/(string: channelid)/rssfeeds/http%3A%2F%2Ftest.com%2Frss.xml
¶
Delete a RSS feed from your channel. Returns error 404 if the RSS feed that is being removed does not exist. Note that the rss feed url should be URL-encoded.
Example request:
curl -X DELETE http://localhost:8085/channels/discovered/abcd/rssfeeds/http%3A%2F%2Ftest.com%2Frss.xml
Example response:
{ "removed": True }
statuscode 404: if the specified RSS URL is not in your feed list. -
-
render_PUT
(request)[source]¶ -
PUT
/channels/discovered/(string: channelid)/rssfeeds/http%3A%2F%2Ftest.com%2Frss.xml
¶
Add a RSS feed to your channel. Returns error 409 if the supplied RSS feed already exists. Note that the rss feed url should be URL-encoded.
Example request:
curl -X PUT http://localhost:8085/channels/discovered/abcd/rssfeeds/http%3A%2F%2Ftest.com%2Frss.xml
Example response:
{ "added": True }
statuscode 409: (conflict) if the specified RSS URL is already present in your feeds. -
-
-
class
Tribler.Core.Modules.restapi.channels.channels_rss_endpoint.
ChannelsRecheckFeedsEndpoint
(session, cid)[source]¶ This class is responsible for handling requests regarding refreshing rss feeds in your channel.
-
render_POST
(request)[source]¶ -
POST
/channels/discovered/(string: channelid)/recheckfeeds
¶
Rechecks all rss feeds in your channel. Returns error 404 if you channel does not exist.
Example request:
curl -X POST http://localhost:8085/channels/discovered/recheckrssfeeds
Example response:
{ "rechecked": True }
statuscode 404: if you have not created a channel. -
-