Home
> Uncategorized > Car Registration #API now available via #NuGET
Car Registration #API now available via #NuGET

NuGet is the de-facto package manager for .NET, and as perhaps a major oversight, the Car Registration API was never available via a NuGet Package.
We’ve put this live today, here: https://www.nuget.org/packages/LicensePlateAPI/ and here is are the steps to use it;
Install the following three NuGet Packages
Install-Package LicensePlateAPI
Install-Package System.ServiceModel.Primitives
Install-Package System.ServiceModel.Http
Then, assuming you’ve already opened an account, here is some sample code;
var client = LicensePlateAPI.API.GetClient();
var car = client.CheckAsync("{LICENSE PLATE}", "{USERNAME}").Result;
Console.WriteLine(car.vehicleJson);
Where evidently {LICENSE PLATE} and {USERNAME} are placeholders. “CheckAsync” checks for UK license plates, but you can change this to any country by using CheckUSAAsync or Check<Country>Async.
Enjoy!
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback