Module: Novu::Api::Messages
- Included in:
- Client
- Defined in:
- lib/novu/api/messages.rb
Overview
Module Novu::Api::Messages provides an API for managing messages in the Novu application.
This module includes methods for retrieving, and deleting messages.
For more information on the Novu API(api.novu.co/api#/Messages), see docs.novu.co/api/get-messages/.
Instance Method Summary collapse
-
#delete_message(message_id) ⇒ Hash, number
Deletes a message entity from the Novu 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 Novu platform
@pathparams:
35 36 37 |
# File 'lib/novu/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/novu/api/messages.rb', line 23 def (query = {}) get("/messages", query: query) end |