-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from razfriman/netstandard_commands
Update to NetStandard for compatibility with .NET Core
- Loading branch information
Showing
43 changed files
with
542 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace TeslaLib.Console | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
if (args.Length < 4) | ||
{ | ||
System.Console.WriteLine("Not enough args. <clientId> <clientSecret> <email> <password>"); | ||
} | ||
var clientId = args[0]; | ||
var clientSecret = args[1]; | ||
var email = args[2]; | ||
var password = args[3]; | ||
|
||
var client = new TeslaClient(email, clientId, clientSecret); | ||
client.Login(password); | ||
|
||
var vehicles = client.LoadVehicles(); | ||
|
||
foreach (TeslaVehicle car in vehicles) | ||
{ | ||
System.Console.WriteLine(car.Id + " " + car.VIN); | ||
} | ||
|
||
System.Console.ReadKey(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\TeslaLib\TeslaLib.csproj" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.