get https://api.keeptruckin.com/v1/freight_visibility/vehicle_locations/details
Get past locations for a specific vehicle
Constraints
- start_time and end_time must specify time window of 24 hours or less
- start_time and end_time must be inside bounds of existing subscriptions and permissions
- relevant subscription must be still ongoing at moment of request
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v1/freight_visibility/vehicle_locations/details')
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