curl --request GET \
--url https://api.tessie.com/{vin}/drives \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tessie.com/{vin}/drives"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tessie.com/{vin}/drives', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tessie.com/{vin}/drives",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tessie.com/{vin}/drives"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tessie.com/{vin}/drives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tessie.com/{vin}/drives")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": 1363162,
"started_at": 1628960959,
"ended_at": 1628970656,
"starting_location": "8055 Dean Martin Drive, Las Vegas, Nevada 89139, United States",
"starting_latitude": 36.042928,
"starting_longitude": -115.187801,
"ending_location": "Cataba Road, Hesperia, California 92344, United States",
"ending_latitude": 34.42468,
"ending_longitude": -117.385746,
"starting_battery": 97,
"ending_battery": 21,
"average_inside_temperature": 20.23,
"average_outside_temperature": 34.94,
"average_speed": 73,
"max_speed": 90,
"rated_range_used": 230.45,
"odometer_distance": 185.9,
"autopilot_distance": 174.6,
"energy_used": 73.28,
"tag": "Personal"
}
]
}Get Drives
Returns the drives for a vehicle.
curl --request GET \
--url https://api.tessie.com/{vin}/drives \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tessie.com/{vin}/drives"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tessie.com/{vin}/drives', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tessie.com/{vin}/drives",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tessie.com/{vin}/drives"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tessie.com/{vin}/drives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tessie.com/{vin}/drives")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": 1363162,
"started_at": 1628960959,
"ended_at": 1628970656,
"starting_location": "8055 Dean Martin Drive, Las Vegas, Nevada 89139, United States",
"starting_latitude": 36.042928,
"starting_longitude": -115.187801,
"ending_location": "Cataba Road, Hesperia, California 92344, United States",
"ending_latitude": 34.42468,
"ending_longitude": -117.385746,
"starting_battery": 97,
"ending_battery": 21,
"average_inside_temperature": 20.23,
"average_outside_temperature": 34.94,
"average_speed": 73,
"max_speed": 90,
"rated_range_used": 230.45,
"odometer_distance": 185.9,
"autopilot_distance": 174.6,
"energy_used": 73.28,
"tag": "Personal"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The associated VIN.
Query Parameters
Whether to return data in miles or kilometers.
mi, km Whether to return data in Fahrenheit or Celsius.
c, f The start of the timeframe. Unix timestamp in seconds.
The end of the timeframe. Unix timestamp in seconds.
The IANA timezone name.
The latitude of the starting point.
37.4925
The longitude of the starting point.
121.9447
The radius from the starting point, in meters.
80
Whether to exclude the starting point.
The latitude of the ending point.
37.4925
The longitude of the ending point.
121.9447
The included radius from the ending point, in meters.
80
Whether to exclude the ending point.
The tag associated with the drive.
"Work"
Whether to exclude the tag.
The driver profile associated with the drive.
"John"
Whether to exclude the driver profile.
Whether to output the results in JSON or CSV.
json, csv The minimum distance driven, in miles.
0.1
The maximum number of results.
Response
Success
Show child attributes
Show child attributes

