lstejskal/adapi

View on GitHub
examples/find_all_campaigns.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

require 'adapi'

# find all campaigns for customer
 
$campaigns = Adapi::Campaign.find :all

p "Found %s campaigns." % $campaigns.size

$campaigns.each do |campaign|
  p "ID: %s, NAME %s" % [ campaign[:id], campaign[:name] ]
end