Sha256: 0e61f2da30fdeb462d7be7c32e2b453319635e17f27e311f8352fe793586c291
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
module Feedlr module Gateway # Subscriptions API # # @see http://developer.feedly.com/v3/subscriptions/ module Subscriptions # Get the user's subscriptions # # @see http://developer.feedly.com/v3/subscriptions/#get-the-users-subscriptions # @return [Feedlr::Collection] def user_subscriptions build_object(:get , '/subscriptions') end # Subscribe to a feed # # @see http://developer.feedly.com/v3/subscriptions/#subscribe-to-a-feed # @param subscription [Hash] # @return [Feedlr::Base] def add_subscription(subscription) build_object(:post , '/subscriptions' , subscription) end # Update an existing subscription # # @see http://developer.feedly.com/v3/subscriptions/#update-an-existing-subscription # @param subscription [Hash] # @return [Feedlr::Success] def update_subscription(subscription) add_subscription(subscription) end # Unsubscribe from a feed # # @see http://developer.feedly.com/v3/subscriptions/#unsubscribe-from-a-feed # @param subscription_id [String] # @return [Feedlr::Success] def delete_subscription(subscription_id) build_object(:delete , "/subscriptions/#{CGI.escape(subscription_id) }") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feedlr-0.1.0 | lib/feedlr/gateway/subscriptions.rb |