get https://api.keeptruckin.com/v1/freight_visibility/companies
Get all companies permitted for vehicle tracking. This api is meant to be called by the broker.
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v1/freight_visibility/companies')
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