module Feedlr::Gateway::Categories

Categories API

@see developer.feedly.com/v3/categories/

Public Instance Methods

change_category_label(category_id , new_value) click to toggle source

Change the label of an existing user category

@see 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]

# File lib/feedlr/gateway/categories.rb, line 21
def change_category_label(category_id , new_value)
  build_object(:post , "/categories/#{CGI.escape(category_id) }" ,
               label: new_value)
end
delete_category(category_id) click to toggle source

Delete a user category

@see developer.feedly.com/v3/categories/#delete-a-category @param category_id [String] @return [Feedlr::Success]

# File lib/feedlr/gateway/categories.rb, line 31
def delete_category(category_id)
  build_object(:delete , "/categories/#{CGI.escape(category_id) }")
end
user_categories() click to toggle source

Get the list of all user categories

@see developer.feedly.com/v3/categories/get-the-list-of-all-categories @return [Feedlr::Collection]

# File lib/feedlr/gateway/categories.rb, line 11
def user_categories
  build_object(:get , '/categories')
end