Basic C# library for interacting with Tesla's Owner API, based on https://tesla-api.timdorr.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
388 B

using System;
using Tesla;
class Program
{
static void Main(string[] args)
{
Client c = new Client();
c.setToken("Bearer qts-f00bf78032efde5ad09c31eac45c85fb4632f377ca5767f589d2d1aca07f1703");
Vehicle v = c.ListVehicles()[0];
c.vehicle_id = v.id_s;
Console.WriteLine(v.display_name);
}
}