get https://api.keeptruckin.com/v1/hours_of_service
List company drivers with hours of service
Note:
Either start_date or end_date must be provided.
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v1/hours_of_service')
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
puts response.code