Ruby

From Rackspace Email & Apps API
Revision as of 12:54, 19 September 2008 by APIAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Running the following command:

wsdl2ruby.rb --wsdl https://admin.mailtrust.com/mailaccounts/mailaccounts.wsdl --type client

This will generate the following list of files.

mailaccounts.rb
mailaccountsClient.rb
mailaccountsDriver.rb
mailaccountsMappingRegistry.rb

Here is the sample code for CheckUserAvailable:

require 'rubygems'
gem 'soap4r'

require 'mailaccountsDriver.rb'

driver = UtilsSoapPort.new
driver.wiredump_dev = STDOUT
res = driver.CheckUserAvailable('ADMIN_NAME', 'ADMIN_PASSWORD', 'DOMAIN', 'USER')