lib/feedlr/gateway/preferences.rb
module Feedlr
module Gateway
# Preferences API
#
# @see http://developer.feedly.com/v3/preferences/
module Preferences
# Get the preferences of the user
#
# @see http://developer.feedly.com/v3/preferences/#get-the-preferences-of-the-user
# @return [Feedlr::Base]
def preferences
request_with_object(method: :get,
path: '/preferences')
end
# Update the preferences of the user
#
# @see http://developer.feedly.com/v3/preferences/#update-the-preferences-of-the-user
# @param preferences [#to_hash]
# @return [Feedlr::Base]
def update_preferences(preferences)
request_with_object(method: :post,
path: '/preferences',
params: preferences)
end
end
end
end