Module: Salesforce::Connection::SoapApi::ClassMethods

Defined in:
lib/salesforce/connection/soap_api.rb

Instance Method Summary collapse

Instance Method Details

#convert_lead(lead_converts) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/salesforce/connection/soap_api.rb', line 23

def convert_lead(lead_converts)
  options = { :body => { :leadConverts => lead_converts } }
  
  as_logged_in_user do
    invoke_soap(:convertLead, options)
  end
end

#loginObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/salesforce/connection/soap_api.rb', line 10

def 
  options = { 
    :endpoint_url => Config.,
    :body         => { 
      :username => Config.username, 
      :password => Config.password, 
      :order!   => [ :username, :password ] 
    } 
  }
  
  invoke_soap(:login, options)
end