lib/wialon_api/api.rb in wialon_api-0.0.5 vs lib/wialon_api/api.rb in wialon_api-0.0.6
- old
+ new
@@ -1,10 +1,10 @@
require 'json'
module WialonApi
module Api
def self.call(service_name, args = {}, sid = nil)
- parameters = { svc: service_name, params: args.to_json, ssid: sid }
+ parameters = { svc: service_name, params: args.to_json, WialonApi.wialon_session_identifier => sid }
connection(url: WialonApi.wialon_host).send(WialonApi.http_verb, nil, parameters).body
end
def self.connection(options = {})
url = options.delete(:url)