get https://api.keeptruckin.com/v1/vehicle_utilization
List of utilization summary by vehicle
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v1/vehicle_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
For an example of how to use our /vehicle_utilization
endpoint in a typical business scenario, refer to TMS Integration Workflow.