module Drip::Client::Broadcasts
Public Instance Methods
broadcast(id)
click to toggle source
Public: Fetch a broadcast.
id - Required. The String id of the broadcast.
Returns a Drip::Response
. See www.getdrip.com/docs/rest-api#broadcasts
# File lib/drip/client/broadcasts.rb, line 26 def broadcast(id) make_json_api_request :get, "v2/#{account_id}/broadcasts/#{id}" end
broadcasts(options = {})
click to toggle source
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
# File lib/drip/client/broadcasts.rb, line 16 def broadcasts(options = {}) make_json_api_request :get, "v2/#{account_id}/broadcasts", options end