Skip to content

msimpson/exacttarget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is no longer maintained and kept only for reference purposes.

ExactTarget is a library for communicating with the ExactTarget email system. The library supports the most up-to-date XML API and is capable of uploading email pastes, images and retrieving lists of subscribers, emails and more.

The latest version of ExactTarget can be installed with Rubygems:

[sudo] gem install exacttarget

Source code can be downloaded on GitHub

# Setup a new client:
client = ExactTarget.new(
  :username     => 'username',
  :password     => 'password',
  :ftp_username => '123456',
  :ftp_password => '123456',
  :ftp_name     => ExactTarget::FTP_ENHANCED_NAME,
  :ftp_uri      => ExactTarget::FTP_ENHANCED_URI,
  :ftp_path     => ExactTarget::FTP_ENHANCED_PATH
)

# Create a new email:
email_id = client.email_create 'New', 'Hi there.', '<html><div>Foo</div></html>'

# Find subscriber lists containing
# the keyword "Test" in their name:
lists = client.list_find_by_name 'Test'

# Send that email to each list:
client.email_send :id => email_id, :include => (lists.map { |list| list[:id] })

ExactTarget is released under the MIT license. See LICENSE.txt for further details.

Provided through RubyDoc:

About

Ruby wrapper for the ExactTarget XML API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages