Module: Teleflow::Api::Feeds
- Included in:
- Client
- Defined in:
- lib/teleflow/api/feeds.rb
Overview
Module Teleflow::Api::Feeds provides an API for managing feeds in the Teleflow application.
This module includes methods for creating, retrieving, and deleting feeds.
For more information on the Teleflow API(api-teleflow.khulnasoft.com/api#/Feeds), see docs.teleflow.khulnasoft.com/api/create-feed/.
Instance Method Summary collapse
-
#create_feed(body) ⇒ Hash, number
Creates a new feed.
-
#delete_feed(feed_id) ⇒ Hash, number
Execute a soft delete of a feed given a certain ID.
-
#feeds ⇒ Hash, number
Returns a list of feeds.
Instance Method Details
#create_feed(body) ⇒ Hash, number
Creates a new feed.
@bodyparams:
18 19 20 |
# File 'lib/teleflow/api/feeds.rb', line 18 def create_feed(body) post("/feeds", body: body) end |
#delete_feed(feed_id) ⇒ Hash, number
Execute a soft delete of a feed given a certain ID.
@pathparams:
39 40 41 |
# File 'lib/teleflow/api/feeds.rb', line 39 def delete_feed(feed_id) delete("/feeds/#{feed_id}") end |
#feeds ⇒ Hash, number
Returns a list of feeds
27 28 29 |
# File 'lib/teleflow/api/feeds.rb', line 27 def feeds get("/feeds") end |