Module: FeedlyApi::API
- Included in:
- Client
- Defined in:
- lib/feedly_api/api.rb
Instance Method Summary collapse
- #get_category_contents(category_id, args = {}) ⇒ Object
- #get_feed_contents(feed_id, args = {}) ⇒ Object
- #get_feed_info(feed_id) ⇒ Object
- #get_markers ⇒ Object
- #get_subscriptions ⇒ Object
- #get_tag_contents(tag_id, args = {}) ⇒ Object
- #get_user_profile ⇒ Object
Instance Method Details
#get_category_contents(category_id, args = {}) ⇒ Object
27 28 29 30 |
# File 'lib/feedly_api/api.rb', line 27 def get_category_contents(category_id, args = {}) category = CGI.escape("user/#{user_id}/category/#{category_id}") make_request("/streams/#{category}/contents", args) end |
#get_feed_contents(feed_id, args = {}) ⇒ Object
17 18 19 20 |
# File 'lib/feedly_api/api.rb', line 17 def get_feed_contents(feed_id, args = {}) feed_id = CGI.escape(feed_id) make_request("streams/#{feed_id}/contents", args) end |
#get_feed_info(feed_id) ⇒ Object
8 9 10 11 |
# File 'lib/feedly_api/api.rb', line 8 def get_feed_info(feed_id) feed_id = CGI.escape(feed_id) make_request("feeds/#{feed_id}") end |
#get_markers ⇒ Object
32 33 34 |
# File 'lib/feedly_api/api.rb', line 32 def get_markers make_request('markers/counts') end |
#get_subscriptions ⇒ Object
13 14 15 |
# File 'lib/feedly_api/api.rb', line 13 def get_subscriptions make_request('subscriptions/') end |
#get_tag_contents(tag_id, args = {}) ⇒ Object
22 23 24 25 |
# File 'lib/feedly_api/api.rb', line 22 def get_tag_contents(tag_id, args = {}) tag = CGI.escape("user/#{user_id}/tag/#{tag_id}") make_request("streams/#{tag}/contents", args) end |
#get_user_profile ⇒ Object
4 5 6 |
# File 'lib/feedly_api/api.rb', line 4 def get_user_profile make_request('profile') end |