Sha256: fd558e6aa7463995ee2b8b9de543c78d01c0bf7df36f16f401f6d21b3c9cbbe8
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
module Feedlr module Gateway # Categories API # # @see http://developer.feedly.com/v3/categories/ module Categories # Get the list of all user categories # # @see http://developer.feedly.com/v3/categories/get-the-list-of-all-categories # @return [Feedlr::Collection] def user_categories build_object(:get , '/categories') end # Change the label of an existing user category # # @see http://developer.feedly.com/v3/categories/#change-the-label-of-an-existing-category # @param category_id [String] # @param new_value [String] label's new value # @return [Feedlr::Success] def change_category_label(category_id , new_value) build_object(:post , "/categories/#{CGI.escape(category_id) }" , label: new_value) end # Delete a user category # # @see http://developer.feedly.com/v3/categories/#delete-a-category # @param category_id [String] # @return [Feedlr::Success] def delete_category(category_id) build_object(:delete , "/categories/#{CGI.escape(category_id) }") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feedlr-0.1.0 | lib/feedlr/gateway/categories.rb |