Module: Eloqua::Campaign
- Included in:
- RESTClient
- Defined in:
- lib/eloqua_api/rest/campaign.rb
Instance Method Summary collapse
- #get_campaign(campaign_id, options = {}) ⇒ Object
- #get_campaigns(options = {}) ⇒ Object
- #get_recent_campaigns(options = {}) ⇒ Object
Instance Method Details
#get_campaign(campaign_id, options = {}) ⇒ Object
3 4 5 |
# File 'lib/eloqua_api/rest/campaign.rb', line 3 def get_campaign(campaign_id, ={}) get("assets/campaign/%s" % campaign_id, ) end |
#get_campaigns(options = {}) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/eloqua_api/rest/campaign.rb', line 14 def get_campaigns(={}) [:count] ||= 10 [:depth] ||= "minimal" [:orderBy] ||= "createdAt+DESC" get("assets/campaigns", ) end |
#get_recent_campaigns(options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/eloqua_api/rest/campaign.rb', line 7 def get_recent_campaigns(={}) [:count] ||= 10 [:depth] ||= "minimal" get("assets/campaigns/recent", ) end |