TeslaInventoryNet 1.3.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TeslaInventoryNet --version 1.3.1
NuGet\Install-Package TeslaInventoryNet -Version 1.3.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TeslaInventoryNet" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TeslaInventoryNet --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TeslaInventoryNet, 1.3.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TeslaInventoryNet as a Cake Addin #addin nuget:?package=TeslaInventoryNet&version=1.3.1 // Install TeslaInventoryNet as a Cake Tool #tool nuget:?package=TeslaInventoryNet&version=1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Retrieves real-time inventory from Tesla.
Usage
class Program
{
static void Main(string[] args)
{
var loggerFactory = LoggerFactory.Create(builder => {
builder.AddConsole();
builder.AddFilter(level => level >= LogLevel.Debug);
});
var logger = loggerFactory.CreateLogger<Program>();
var tesla = new TeslaInventory(loggerFactory.CreateLogger<TeslaInventory>());
tesla.Search(Location.US, new SearchCriteria() { Model = "m3", Condition = "used"},
(results) => {
logger.LogInformation($"Found {results.Count} vehicles");
foreach (var result in results)
{
logger.LogInformation($"https://www.tesla.com/{result.Model}/order/{result.Vin}"
+ $"\n{result.Year} {result.Model}"
+ $"\n{result.TrimName}" + (result.IsDemo ? " Demo" : "")
+ $"\n{result.Options.Where(x => x.Group == "PAINT").Select(x => x.Name).FirstOrDefault()}"
+ (result.Autopilot.Contains("AUTOPILOT_FULL_SELF_DRIVING") ? "\nFull Self-Driving Capability" : "")
+ $"\n{result.City}, {result.StateProvince}");
}
});
}
}
License
TeslaInventoryNet © Brad Walker, released under the MIT License.<br> Authored and maintained by Brad Walker with help from contributors.
GitHub Brad Walker · Twitter @braddwalker
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Microsoft.Extensions.Logging (>= 3.1.19)
- Newtonsoft.Json (>= 13.0.1)
- RestSharp (>= 106.12.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.4.1 | 540 | 10/6/2022 |
1.4.0 | 379 | 10/6/2022 |
1.3.18 | 324 | 12/27/2021 |
1.3.16 | 354 | 11/1/2021 |
1.3.15 | 399 | 10/31/2021 |
1.3.14 | 425 | 10/30/2021 |
1.3.13 | 316 | 10/25/2021 |
1.3.12 | 338 | 10/22/2021 |
1.3.11 | 316 | 10/22/2021 |
1.3.10 | 325 | 10/22/2021 |
1.3.9 | 346 | 10/21/2021 |
1.3.8 | 329 | 10/20/2021 |
1.3.7 | 339 | 10/20/2021 |
1.3.6 | 337 | 10/20/2021 |
1.3.5 | 402 | 10/17/2021 |
1.3.4 | 352 | 10/8/2021 |
1.3.3 | 387 | 10/7/2021 |
1.3.2 | 304 | 10/7/2021 |
1.3.1 | 318 | 10/6/2021 |
1.3.0 | 320 | 10/6/2021 |
1.2.2 | 328 | 10/5/2021 |
1.2.1 | 343 | 10/4/2021 |
1.2.0 | 353 | 10/4/2021 |
1.1.0 | 368 | 10/4/2021 |
1.0.0 | 358 | 10/4/2021 |
Initial release