/ifta/trips

List company vehicles' IFTA trip reports

Note that the calibrated_start_odometer and calibrated_end_odometer fields in the response are only available as a feature.

require 'uri'
require 'net/http'

url = URI('https://api.keeptruckin.com/v1/ifta/trips')

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
Language
Authorization
Header
Click Try It! to start a request and see the response here!