TeslaInventoryNet 1.3.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package TeslaInventoryNet --version 1.3.3
                    
NuGet\Install-Package TeslaInventoryNet -Version 1.3.3
                    
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.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TeslaInventoryNet" Version="1.3.3" />
                    
Directory.Packages.props
<PackageReference Include="TeslaInventoryNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TeslaInventoryNet --version 1.3.3
                    
#r "nuget: TeslaInventoryNet, 1.3.3"
                    
#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.
#addin nuget:?package=TeslaInventoryNet&version=1.3.3
                    
Install as a Cake Addin
#tool nuget:?package=TeslaInventoryNet&version=1.3.3
                    
Install as a Cake Tool

Retrieves real-time inventory from Tesla.

Last version

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", Count = 100},
                (results) => {
                    logger.LogInformation($"Found {results.TotalMatchesFound} vehicles total, {results.Vehicles.Length} vehicles returned");
                    
                    foreach (var result in results.Vehicles)
                    {
                        logger.LogInformation($"https://www.tesla.com/{result.Model}/order/{result.Vin}"
                                    + $"\n{result.Year} {result.Model}"
                                    + $"\n{result.TrimName}" + (result.IsDemo ? " Demo" : "")
                                    + $"\n{result.OptionCodeData.Where(x => x.Group == "PAINT").Select(x => x.Name).FirstOrDefault()}"
                                    + (result.Autopilot.Contains("AUTOPILOT_FULL_SELF_DRIVING") ? "\nFull Self-Driving Capability" : "")
                                    + $"\nFactory: {result.FactoryCode}"
                                    + $"\n{result.City}, {result.StateProvince}"
                                    + $"\nhttps://static-assets.tesla.com/v1/compositor/?model={result.Model}&view={result.CompositorViews.FrontView}&size=1441&bkba_opt=2&options={string.Join(',', result.OptionCodeData.Select(x => x.Code))}");
                    }
                });
        }
    }

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 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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.

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 586 10/6/2022
1.4.0 415 10/6/2022
1.3.18 376 12/27/2021
1.3.16 407 11/1/2021
1.3.15 451 10/31/2021
1.3.14 469 10/30/2021
1.3.13 365 10/25/2021
1.3.12 388 10/22/2021
1.3.11 371 10/22/2021
1.3.10 374 10/22/2021
1.3.9 397 10/21/2021
1.3.8 386 10/20/2021
1.3.7 387 10/20/2021
1.3.6 384 10/20/2021
1.3.5 449 10/17/2021
1.3.4 401 10/8/2021
1.3.3 435 10/7/2021
1.3.2 349 10/7/2021
1.3.1 377 10/6/2021
1.3.0 374 10/6/2021
1.2.2 383 10/5/2021
1.2.1 396 10/4/2021
1.2.0 403 10/4/2021
1.1.0 415 10/4/2021
1.0.0 404 10/4/2021

Initial release