Module: FeedlyApi::Client::Collections
- Included in:
- FeedlyApi::Client
- Defined in:
- lib/feedly_api/client/collections.rb
Instance Method Summary collapse
- #add_feed(collection_id, params = {}) ⇒ Object
- #add_feeds(collection_id, params = {}) ⇒ Object
- #collection(collection_id) ⇒ Object
- #collections ⇒ Object
- #create_collection(params = {}) ⇒ Object
- #remove_feed(collection_id, feed_id) ⇒ Object
- #remove_feeds(collection_id, params = {}) ⇒ Object
- #update_collection(collection_id, params = {}) ⇒ Object
Instance Method Details
#add_feed(collection_id, params = {}) ⇒ Object
22 23 24 |
# File 'lib/feedly_api/client/collections.rb', line 22 def add_feed(collection_id, params = {}) put("collections/#{CGI.escape(collection_id)}/feeds", params) end |
#add_feeds(collection_id, params = {}) ⇒ Object
26 27 28 |
# File 'lib/feedly_api/client/collections.rb', line 26 def add_feeds(collection_id, params = {}) post("collections/#{CGI.escape(collection_id)}/feeds.mput") end |
#collection(collection_id) ⇒ Object
9 10 11 |
# File 'lib/feedly_api/client/collections.rb', line 9 def collection(collection_id) get("collections/#{CGI.escape(collection_id)}") end |
#collections ⇒ Object
5 6 7 |
# File 'lib/feedly_api/client/collections.rb', line 5 def collections get("collections") end |
#create_collection(params = {}) ⇒ Object
13 14 15 |
# File 'lib/feedly_api/client/collections.rb', line 13 def create_collection(params = {}) post("collections", params) end |
#remove_feed(collection_id, feed_id) ⇒ Object
30 31 32 |
# File 'lib/feedly_api/client/collections.rb', line 30 def remove_feed(collection_id, feed_id) delete("collections/#{CGI.escape(collection_id)}/feeds/#{CGI.escape(feed_id)}") end |
#remove_feeds(collection_id, params = {}) ⇒ Object
34 35 36 |
# File 'lib/feedly_api/client/collections.rb', line 34 def remove_feeds(collection_id, params = {}) delete("collections/#{CGI.escape(collection_id)}/feeds.mdelete", params) end |
#update_collection(collection_id, params = {}) ⇒ Object
17 18 19 20 |
# File 'lib/feedly_api/client/collections.rb', line 17 def update_collection(collection_id, params = {}) params[:id] = collection_id post("collections", params) end |