Skip to content

Instantly share code, notes, and snippets.

@demoore
Created November 20, 2014 00:58
Show Gist options
  • Save demoore/db2dd422776bbb4bb82e to your computer and use it in GitHub Desktop.
Save demoore/db2dd422776bbb4bb82e to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'send_with_us'
begin
obj = SendWithUs::Api.new( api_key: 'API KEY', debug: true )
puts Time.now.to_i
customer_data = {:FirstName => "dylan"}
result = obj.customer_create("[email protected]", customer_data)
puts result
result = obj.customer_delete("[email protected]")
puts result
rescue => e
puts "Error - #{e.class.name}: #{e.message}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment