Class: Postini::EndpointResolverService

Inherits:
Handsoap::Service
  • Object
show all
Includes:
ConfigurationCheck
Defined in:
lib/postini/endpoint_resolver_service.rb

Instance Method Summary collapse

Methods included from ConfigurationCheck

included

Instance Method Details

#get_service_endpoint(email, service = "v2AutomatedBatch") ⇒ Object

public methods



14
15
16
17
18
19
20
21
22
# File 'lib/postini/endpoint_resolver_service.rb', line 14

def get_service_endpoint( email, service = "v2AutomatedBatch" )
  response = invoke("end:GetServiceEndpoint") do |message|
    message.add( "apiKey", Postini.api_key )
    message.add( "email", email )
    message.add( "service", service )
  end

  parse_get_service_endpoint_result( response.document.xpath('//tns:GetServiceEndpointResponse', tns).first )
end