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 https://www.getdrip.com/docs/rest-api#broadcasts



28
29
30
# File 'lib/drip/client/broadcasts.rb', line 28

def broadcast(id)
  make_json_api_request :get, "v2/#{}/broadcasts/#{CGI.escape id.to_s}"
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 https://www.getdrip.com/docs/rest-api#broadcasts



18
19
20
# File 'lib/drip/client/broadcasts.rb', line 18

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