Module: Drip::Client::Broadcasts

Included in:
Drip::Client
Defined in:
lib/drip/client/broadcasts.rb

Instance Method Summary collapse

Instance Method Details

#broadcast(id) ⇒ Object

Public: Fetch a broadcast.

id - Required. The String id of the broadcast.

Returns a Drip::Response. See www.getdrip.com/docs/rest-api#broadcasts



26
27
28
# File 'lib/drip/client/broadcasts.rb', line 26

def broadcast(id)
  make_json_api_request :get, "v2/#{}/broadcasts/#{id}"
end

#broadcasts(options = {}) ⇒ Object

Public: Fetch all broadcasts to which the authenticated user has access

options - A Hash of options.

- status - Optional. Filter by one of the following statuses:
           draft, or scheduled, or sent. Defaults to all.
- sort   - Optional. Sort results by one of these fields:
           `send_at`, `name`. Default sorting is `created_at`

Returns a Drip::Response See www.getdrip.com/docs/rest-api#broadcasts



16
17
18
# File 'lib/drip/client/broadcasts.rb', line 16

def broadcasts(options = {})
  make_json_api_request :get, "v2/#{}/broadcasts", options
end