get https://api.keeptruckin.com/v1/freight_visibility/asset_association
Get locations of all assets of a company, ordered by their proximity to provided location of interest. Note assets without asset gateways will not be included in response.
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v1/freight_visibility/asset_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