Skip to content
Silverpop Engage and Transact Ruby API -- Extracted from ShoeDazzle.com To install drop in your project's vendor/plugin folder. Built on Rails 2.1.0. Requires hpricot, net/http, net/ftp, and uri.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
silverpop.gemspec
uninstall.rb

README

Silverpop
====================================================================================================

Silverpop Engage and Transact API -- Extracted from ShoeDazzle.com

Silverpop allows for seamless integration from Ruby with the Engage and Transact API. Built on Rails
2.1.0. Requires hpricot, net/http, net/ftp, and uri.


Examples
====================================================================================================

TRANSACT


  Defining recipients:

    recipient = { :email            => 'test@test.com',
                  :personalizations => [
                      {:tag_name => 'FIRST_NAME', :value => 'Joe'},
                      {:tag_name => 'LAST_NAME',  :value => 'Schmoe'}
                  ] }
    recipients = [  recipient,
                    { :email            => 'test2@test.com',
                    :personalizations => [
                        {:tag_name => 'FIRST_NAME', :value => 'John'},
                        {:tag_name => 'LAST_NAME',  :value => 'Smith'}
                    ] },
                    { :email            => 'test3@test.com',
                      :personalizations => [
                        {:tag_name => 'FIRST_NAME', :value => 'Jane'},
                        {:tag_name => 'LAST_NAME',  :value => 'Doe'}
                    ] } ]


  Transact HTTP Sample Usage:

    campaign_id = 1234567
    sp = Silverpop::Transact.new campaign_id, recipients
    sp.query


  Transact FTP Sample Usage:

    campaign_id = 1234567
    options.merge!( { :send_as_batch => 'true' } )

    transact = Silverpop::Transact.new(campaign_id, recipients, options)
    transact.save_xml     file_path
    transact.submit_batch file_path


ENGAGE

  Please look through the functions in lib/engage.rb


Copyright (c) 2010 George Truong, released under the MIT license
Something went wrong with that request. Please try again.