Sha256: 2aec698541fe4a51d56f9fd48addc79c7e0c255c2509b1ea2de8b5ed98bc490b
Contents?: true
Size: 710 Bytes
Versions: 4
Compression:
Stored size: 710 Bytes
Contents
#!/usr/bin/ruby # vim: set tw=72 ai sw=2: ### User Configurable Constants ### DefaultUser = 'changeme@salesforce.com' DefaultPasswd = 'changemetoo' ################################### require 'wsdl' require 'pp' user = ENV['RFORCE_USER'] || DefaultUser passwd = ENV['RFORCE_PASS'] || DefaultPasswd # Open a connection and login if $DEBUG drv = RForce::WSDL.new(user, passwd, $DEBUG, "http://na1-api.salesforce.com/services/Soap/u/6.0") else drv = RForce::WSDL.new(user, passwd) end #result = drv.describeSObjects(["Contact"]) #pp result sobj = RForce::makeSObject("Contact", :LastName => "Blow", :FirstName => "Joe", :Salutation => "Mr.", :Phone => "555-555-1212") pp drv.create([sobj])
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
aq1018-rforce-0.5.2 | wsdl/sample/create.rb |
aq1018-rforce-0.5.1 | wsdl/sample/create.rb |
DerGuteMoritz-rforce-0.4.2 | wsdl/sample/create.rb |
rforce-raygao-1.0.0 | wsdl/sample/create.rb |