User show .NET
Method user_show is used for showing users details.
Return value(s)
This method returns a UserParamsOut hash table.
Authentication
This method requires that you have registered to Maventa and received the API key.
Arguments
api_keys(required)- User ID string (required)
1 require 'soap/wsdlDriver'
2
3 serv = SOAP::WSDLDriverFactory.new("https://secure.maventa.com/api_net/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 user
12 result = serv.user_show(api_keys, "User ID")
13
14 if result.status == "OK"
15 puts result.id, result.first_name, result.last_name, result.email, result.phone, result.user_role
16 end
17
18 rescue Exception => ex
19 puts ex
20 end