Module: Feedlr::Gateway::Topics

Included in:
Client
Defined in:
lib/feedlr/gateway/topics.rb

Overview

Topics API

Instance Method Summary collapse

Instance Method Details

#add_topic(topic) ⇒ Feedlr::Success

Add a topic to the user feedly account



20
21
22
# File 'lib/feedlr/gateway/topics.rb', line 20

def add_topic(topic)
  build_object(:post , '/topics' ,  topic)
end

#delete_topic(topic_id) ⇒ Feedlr::Success

Remove a topic from a feedly account



38
39
40
# File 'lib/feedlr/gateway/topics.rb', line 38

def delete_topic(topic_id)
  build_object(:delete , "/topics/#{CGI.escape(topic_id) }")
end

#update_topic(topic) ⇒ Feedlr::Success

Update an existing topic



29
30
31
# File 'lib/feedlr/gateway/topics.rb', line 29

def update_topic(topic)
  build_object(:post , '/topics' ,  topic)
end

#user_topicsFeedlr::Collection

Get the list of topics the user has added to their feedly



11
12
13
# File 'lib/feedlr/gateway/topics.rb', line 11

def user_topics
  build_object(:get , '/topics')
end