get https://api.gomotive.com/v1/freight_visibility/vehicle_association
Purpose: Use this API to fetch a list of all the vehicles that are nearby to your specified location. For example, if you have a pickup at Walnut Creek, and want to know which are vehicles are available for a service, then this API will fetch all the nearby vehicles to Walnut Creek as well as their details and the current location.
require 'uri'
require 'net/http'
url = URI('https://api.gomotive.com/v1/freight_visibility/vehicle_association')
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