Class: Brazify::Campaign

Inherits:
Resource show all
Defined in:
lib/brazify/resources/campaign.rb

Class Method Summary collapse

Methods inherited from Resource

list_methods

Class Method Details

.send(campaign_id:, options: { broadcast: true }) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/brazify/resources/campaign.rb', line 4

def send(campaign_id:, options: { broadcast: true })
  post(
    path: '/campaigns/trigger/send',
    params: {
      campaign_id: campaign_id
    }.merge(options)
  )
end