Currency list

Method currency_list is used for getting list of currencies. List can be used in your application. List contains abbreviation, common name and sign of currencies.

Return value(s)

This method returns an array that contains return string and an array of CurrencyParamsOut hash tables.

Authentication

This method requires that you have registered to Maventa and received an API key.

Arguments

  1. api_keys (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 
10   # List currencies
11   results = serv.currency_list(api_keys)
12 
13   if results[0] == "OK" 
14     results[1].each do |result|
15       # Currency name
16       puts result.name
17       # Currency abbrevation
18       puts result.abbr
19       # Currency sign
20       puts result.sign
21     end
22   end
23 end

Also available in: HTML TXT