User list

Method user_list is used for listing your company accounts users.

Return value(s)

This method returns an array that contains return code as a string and an array of UserParamsOut hash tables.

Authentication

This method requires that you have registered to Maventa and received the 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   api_keys[:company_uuid] = "" # Put here UUID of the Company you are acting for
10 
11   # List users
12   results = serv.user_list(api_keys)
13 
14   if results[0] == "OK" 
15     results[1].each do |result|
16       puts result.id, result.first_name, result.last_name, result.email, result.phone, result.user_role
17       usr_id = result.id
18     end
19   end
20 
21 rescue Exception => ex 
22   puts ex
23 end

Also available in: HTML TXT