lib/platform_rest/client.rb in losant_rest-1.19.1 vs lib/platform_rest/client.rb in losant_rest-1.19.2
- old
+ new
@@ -25,11 +25,11 @@
module PlatformRest
# Platform API
#
# User API for accessing platform data
#
- # Built For Version 1.26.1
+ # Built For Version 1.26.2
class Client
attr_accessor :auth_token, :url
def initialize(options = {})
self.auth_token = options.fetch(:auth_token, nil)
@@ -388,10 +388,10 @@
headers = options.fetch(:headers, {})
method = options.fetch(:method, :get)
headers["Accept"] = "application/json"
headers["Content-Type"] = "application/json"
- headers["Accept-Version"] = "^1.26.1"
+ headers["Accept-Version"] = "^1.26.2"
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
path = self.url + options.fetch(:path, "")
response = HTTParty.send(method, path,
query: Utils.fix_query_arrays(options[:query]),