get https://api.keeptruckin.com/v2/vehicle_locations/
List vehicle's locations for a company vehicle
require 'uri'
require 'net/http'
require 'json'
url = URI("https://api.keeptruckin.com/v2/vehicle_locations/<id>?start_date=<yyyy-mm-dd>&end_date=<yyyy-mm-dd>")
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
Note
There is a limit of 10 simultaneous requests at a time to the endpoint.