Module: Teleflow::Api::Messages
- Included in:
- Client
- Defined in:
- lib/teleflow/api/messages.rb
Overview
Module Teleflow::Api::Messages provides an API for managing messages in the Teleflow application.
This module includes methods for retrieving, and deleting messages.
For more information on the Teleflow API(api-teleflow.khulnasoft.com/api#/Messages), see docs.teleflow.khulnasoft.com/api/get-messages/.
Instance Method Summary collapse
-
#delete_message(message_id) ⇒ Hash, number
Deletes a message entity from the Teleflow platform.
-
#messages(query = {}) ⇒ Hash, number
Returns a list of messages that can be paginated using the ‘page` query parameter and filtered by the environment where it is executed from the organization the user belongs to.
Instance Method Details
#delete_message(message_id) ⇒ Hash, number
Deletes a message entity from the Teleflow platform
@pathparams:
35 36 37 |
# File 'lib/teleflow/api/messages.rb', line 35 def () delete("/messages/#{}") end |
#messages(query = {}) ⇒ Hash, number
Returns a list of messages that can be paginated using the ‘page` query parameter and filtered by the environment where it is executed from the organization the user belongs to.
@queryparams:
23 24 25 |
# File 'lib/teleflow/api/messages.rb', line 23 def (query = {}) get("/messages", query: query) end |