Postal address show
Method postal_address_show is used for showing postal address details.
Return value(s)
This method returns an array that contains return code as a string and PostalAddressParamsOut hash table.
Authentication
This method requires that you have registered to Maventa and received the API key.
Arguments
api_keys(required)- Postal address ID string (required)
Example code
1 require 'soap/wsdlDriver'
2
3 serv = SOAP::WSDLDriverFactory.new("https://secure.maventa.com/api/wsdl").create_rpc_driver
4
5 begin
6 api_keys = Hash.new
7 api_keys[:vendor_api_key] = "" # If you are software vendor, you shall put here API-key for this application
8 api_keys[:user_api_key] = "" # Put here your API key
9 api_keys[:company_uuid] = "" # Put here UUID of the Company you are acting for
10
11 # Show single postal address
12 result = serv.postal_address_show(api_keys, "Postal address ID")
13
14 puts result[1].id, result[1].address1, result[1].address2, result[1].post_code, result[1].post_office, result[1].city, result[1].state, result[1].country
15
16 rescue Exception => ex
17 puts ex
18 end