module Feedlr::Gateway::Subscriptions
Subscriptions
API
Public Instance Methods
add_subscription(subscription)
click to toggle source
Subscribe to a feed
@see developer.feedly.com/v3/subscriptions/#subscribe-to-a-feed @param subscription [Hash] @return [Feedlr::Base]
# File lib/feedlr/gateway/subscriptions.rb, line 20 def add_subscription(subscription) build_object(:post , '/subscriptions' , subscription) end
delete_subscription(subscription_id)
click to toggle source
Unsubscribe from a feed
@see developer.feedly.com/v3/subscriptions/#unsubscribe-from-a-feed @param subscription_id [String] @return [Feedlr::Success]
# File lib/feedlr/gateway/subscriptions.rb, line 38 def delete_subscription(subscription_id) build_object(:delete , "/subscriptions/#{CGI.escape(subscription_id) }") end
update_subscription(subscription)
click to toggle source
Update an existing subscription
@see developer.feedly.com/v3/subscriptions/#update-an-existing-subscription @param subscription [Hash] @return [Feedlr::Success]
# File lib/feedlr/gateway/subscriptions.rb, line 29 def update_subscription(subscription) add_subscription(subscription) end
user_subscriptions()
click to toggle source
Get the user’s subscriptions
@see developer.feedly.com/v3/subscriptions/#get-the-users-subscriptions @return [Feedlr::Collection]
# File lib/feedlr/gateway/subscriptions.rb, line 11 def user_subscriptions build_object(:get , '/subscriptions') end