Module: Checkdin::Campaigns
- Included in:
- Client
- Defined in:
- lib/checkdin/campaigns.rb
Instance Method Summary collapse
-
#campaign(id) ⇒ Object
Retrieve information about a campaign.
-
#campaigns(options = {}) ⇒ Object
Get a list of all campaigns for the authenticating client.
Instance Method Details
#campaign(id) ⇒ Object
Retrieve information about a campaign
param [Integer] id The ID of the campaign
8 9 10 11 |
# File 'lib/checkdin/campaigns.rb', line 8 def campaign(id) response = connection.get("campaigns/#{id}") return_error_or_body(response) end |
#campaigns(options = {}) ⇒ Object
Get a list of all campaigns for the authenticating client.
18 19 20 21 22 23 |
# File 'lib/checkdin/campaigns.rb', line 18 def campaigns(={}) response = connection.get do |req| req.url "campaigns", end return_error_or_body(response) end |