Sha256: 5e5f23e80da44f8b8d900a336633de2df06f35b0134385614c0b73454fd06ed9

Contents?: true

Size: 857 Bytes

Versions: 6

Compression:

Stored size: 857 Bytes

Contents

module FeedlyApi
  module API

    def get_user_profile
      make_request('profile')
    end

    def get_feed_info(feed_id)
      feed_id = CGI.escape(feed_id)
      make_request("feeds/#{feed_id}")
    end

    def get_subscriptions
      make_request('subscriptions/')
    end

    def get_feed_contents(feed_id, args = {})
      feed_id = CGI.escape(feed_id)
      make_request("streams/#{feed_id}/contents", args)
    end

    def get_tag_contents(tag_id, args = {})
      tag = CGI.escape("user/#{user_id}/tag/#{tag_id}")
      make_request("streams/#{tag}/contents", args)
    end

    def get_category_contents(category_id, args = {})
      category = CGI.escape("user/#{user_id}/category/#{category_id}")
      make_request("/streams/#{category}/contents", args)
    end

    def get_markers
      make_request('markers/counts')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
feedly_api-0.6.3 lib/feedly_api/api.rb
feedly_api-0.6.2 lib/feedly_api/api.rb
feedly_api-0.6.1 lib/feedly_api/api.rb
feedly_api-0.6.0 lib/feedly_api/api.rb
feedly_api-0.5.1 lib/feedly_api/api.rb
feedly_api-0.5.0 lib/feedly_api/api.rb