gem install utopialibFirst, you need gem to load the environment variables, which is used in the examples:
gem install dotenvMake changes to .env:
cp example.env .envand run in cli:
cd examples
ruby example1.rbresult:
check client availability..
client connected
call the GetSystemInfo method..
{"buildAbi"=>"x86_64-little_endian-llp64", "buildCpuArchitecture"=>"x86_64", "build_number"=>"1.0.5986", "currentCpuArchitecture"=>"x86_64", "netCoreRate"=>25, "networkCores"=>4, "networkEnabled"=>true, "numberOfConnections"=>8, "packetCacheSize"=>920, "uptime"=>"00:05:34"}
MIT license
