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



24
25
26
# File 'lib/drip/client/broadcasts.rb', line 24

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



14
15
16
# File 'lib/drip/client/broadcasts.rb', line 14

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