Module: Drip::Client::Campaigns
- Included in:
- Drip::Client
- Defined in:
- lib/drip/client/campaigns.rb
Instance Method Summary collapse
-
#campaigns(options = {}) ⇒ Object
Public: Fetch campaigns for this account.
Instance Method Details
#campaigns(options = {}) ⇒ Object
Public: Fetch campaigns for this account
options - A Hash of options
- status - Optional. Filter by one of the following statuses:
draft, active, or paused. Defaults to all.
- page - Optional. Use this parameter to paginate through
your list of campaigns. Each response contains a
a `meta` object that includes `total_count` and
`total_pages` attributes.
Returns a Drip::Response. See www.getdrip.com/docs.rest-api#campaigns
16 17 18 |
# File 'lib/drip/client/campaigns.rb', line 16 def campaigns( = {}) get "#{account_id}/campaigns", end |