Module: Rapleaf::Marketo
- Defined in:
- lib/marketo/enums.rb,
lib/marketo/client.rb,
lib/marketo/lead_key.rb,
lib/marketo/lead_record.rb,
lib/marketo/authentication_header.rb
Defined Under Namespace
Modules: LeadKeyType, ListOperationType Classes: AuthenticationHeader, Client, LeadKey, LeadRecord
Class Method Summary collapse
Class Method Details
.new_client(access_key, secret_key, api_subdomain = 'na-i', api_version = '1_5', document_version = '1_4') ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/marketo/client.rb', line 5 def self.new_client(access_key, secret_key, api_subdomain = 'na-i', api_version = '1_5', document_version = '1_4') client = Savon::Client.new do wsdl.endpoint = "https://#{api_subdomain}.marketo.com/soap/mktows/#{api_version}" wsdl.document = "http://app.marketo.com/soap/mktows/#{document_version}?WSDL" http.read_timeout = 90 http.open_timeout = 90 http.headers = {"Connection" => "Keep-Alive"} end Client.new(client, Rapleaf::Marketo::AuthenticationHeader.new(access_key, secret_key)) end |