lib/fitbit_api/client.rb in fitbit_api-0.8.1 vs lib/fitbit_api/client.rb in fitbit_api-0.8.2
- old
+ new
@@ -65,11 +65,11 @@
'Accept-Language' => @unit_system,
'Accept-Locale' => @locale
}
end
- def get(path, opts={})
- response = token.get(("#{@api_version}/" + path), headers: request_headers).response
+ def get(path, opts={}, 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
def post(path, opts={})