lib/fitbit_api/client.rb in fitbit_api-0.8.2 vs lib/fitbit_api/client.rb in fitbit_api-0.8.3
- old
+ new
@@ -65,10 +65,11 @@
'Accept-Language' => @unit_system,
'Accept-Locale' => @locale
}
end
- def get(path, opts={}, params: {})
+ def get(path, opts={})
+ params = opts.delete(:params) || {}
response = token.get(("#{@api_version}/" + path), params: deep_keys_to_camel_case!(params), headers: request_headers).response
object = MultiJson.load(response.body) unless response.status == 204
process_keys!(object, opts)
end