Module: Novu::Api::NotificationGroups
- Included in:
- Client
- Defined in:
- lib/novu/api/notification_groups.rb
Overview
Module Novu::Api::NotificationGroups provides an API for managing notification groups in the Novu application.
This module includes methods for creating, retrieving notification groups.
For more information on the Novu API(api.novu.co/api#/Notification%20groups), see docs.novu.co/api/create-notification-group/.
Instance Method Summary collapse
-
#create_notification_group(body) ⇒ Hash, number
Creates a notification group.
-
#notification_groups ⇒ Hash, number
Returns a list of notification groups.
Instance Method Details
#create_notification_group(body) ⇒ Hash, number
Creates a notification group.
@bodyparams:
18 19 20 |
# File 'lib/novu/api/notification_groups.rb', line 18 def create_notification_group(body) post("/notification-groups", body: body) end |
#notification_groups ⇒ Hash, number
Returns a list of notification groups
27 28 29 |
# File 'lib/novu/api/notification_groups.rb', line 27 def notification_groups get("/notification-groups") end |