Skip to content

Provides an easy-to-use ruby interface into the ExactTarget SOAP API, using the Savon client.

License

Notifications You must be signed in to change notification settings

talkable/exact_target_sdk

This branch is 10 commits ahead of daws/exact_target_sdk:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ec9a13 · Aug 5, 2024

History

37 Commits
Aug 5, 2024
Feb 8, 2012
Mar 8, 2012
Feb 8, 2012
Sep 19, 2014
Aug 5, 2024
Aug 5, 2024
Feb 8, 2012
Feb 16, 2012
Feb 8, 2012
Aug 2, 2024

Repository files navigation

ExactTarget SDK

An object-oriented wrapper for the ExactTarget SOAP API.

The ExactTarget web service guide can be viewed here: docs.code.exacttarget.com/020_Web_Service_Guide

With few exceptions, ruby conventions for capitalization are ignored and those outlined in the guide linked above are used. This is done in an attempt to be as transparent as possible, so that the API may be used by referring only to the guide linked above.

Note this SDK is currently quite incomplete, supporting only a subset of the possible objects and methods. The framework is in place, however, to very easily implement new objects by simply declaring their properties.

Synopsis:

ExactTargetSDK.config(:username => 'foo', :password => 'mypass')

client = ExactTargetSDK::Client.new
definition = ExactTargetSDK::TriggeredSendDefinition.new('CustomerKey' => 'my_triggered_send')
subscriber = ExactTargetSDK::Subscriber.new('EmailAddress' => 'me@example.com')
triggered_send = ExactTargetSDK::TriggeredSend.new('TriggeredSendDefinition' => definition)
triggered_send.Subscribers << subscriber

# Creates subscriber record, then executes the "my_triggered_send" trigger to
# that subscriber.
response = client.Create(subscriber, triggered_send)

puts "response status: #{response.OverallStatus}"
response.Results.each do |result|
  puts "result..."
  puts "  result code: #{result.StatusCode}"
  puts "  result message: #{result.StatusMessage}"
end

About

Provides an easy-to-use ruby interface into the ExactTarget SOAP API, using the Savon client.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%