Sha256: 9c217264e613d2b005c54acbaaa4e60554dc939ac6b36d521ad6829705b0d01d
Contents?: true
Size: 311 Bytes
Versions: 2
Compression:
Stored size: 311 Bytes
Contents
module WialonApi module Authorization def authorize(user, password) response = WialonApi::Api.call('core/login', user: user, password: password) result = WialonApi::Result.process(response) WialonApi::Client.new(result.send(WialonApi.wialon_client_session_identifier)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wialon_api-0.0.7 | lib/wialon_api/authorization.rb |
wialon_api-0.0.6 | lib/wialon_api/authorization.rb |