Responsys Client
About
This project is a Ruby gem to communicate with Responsys (www.responsys.com), an enterprise email service provider. This code is neither officially supported nor endorsed by Responsys.
The purpose of this project is to provide a more friendly Ruby wrapper to their SOAP API. The initial ruby code was generated from their WSDL, as of April 2011, via the SOAP4R project (rubygems.org/gems/soap4r). Additional monkey fixes were needed to support SOAP headers that the Responsys API depends on.
Getting started
Add it to your Gemfile:
gem 'responsys-client'
Sending an email
client = ResponsysClient.new('myusername', 'mypassword)
# the session ID is stored in the client.
client.login
# send the email to the recipient.
campaign_name = 'Foo campaign'
recipient_info = {id: 1234, email: '[email protected]'}
client.trigger_user_campaign(campaign_name, recipient_info)