This repo is a collection of examples for accessing ExactTarget's SOAP API with Ruby using the Savon Gem.
- Savon
1.9.3
- Copy the creds.rb.template file to creds.rb
- Open creds.rb and input the appropriate values for username/password and WSDL
- Requires an ExactTarget user with 'API User' and 'Grant the user access to the web services' permissions
- Navigate to samples directory
- Run the getsystemstatus.rb script
- Successful response will include StatusCode of OK:
Example:
{
:results=>
{
:result=>
{
:status_code=>"OK",
:status_message=>"System Status Retrieved",
:system_status=>"OK"}
},
:overall_status=>"OK",
:overall_status_message=>nil,
:request_id=>"7a5aba84-2c05-462c-9ae1-e18fb9887449",
:@xmlns=>"http://exacttarget.com/wsdl/partnerAPI"
}
Check out: https://salesforce.stackexchange.com/questions/tagged/exacttarget