get https://api.keeptruckin.com/v2/driver_performance_events
List company's driver performance events of type harsh events (hard_brake, hard_accel), AI events / hubble events (cell_phone, tailgating) and crash events (crash)
require 'uri'
require 'net/http'
url = URI('https://api.keeptruckin.com/v2/driver_performance_events')
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