get https://api.keeptruckin.com/v2/driver_utilization
List of utilization summary by driver. This api resolves a bug with v1 where the x-metrics-units header wasn't being respected.
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v1/driver_utilization')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"
response = http.request(request)
puts response.read_body