Breaking changes
After some time we decided to prefix the data models of Airly.Net
by Air
so now measurment is not Measurment
but AirMeasurment
Unoffical powerfull and fast .NET API client for Airly
If you want to integrate your application with the API from Airly this is what you're looking for
- Async based
- Super light
- 100% coverage with the Airly API
- Fully safe and easy to use
- No more than one request per invoked method*
You can acces the documentation here
Or visit project Wiki
Airly.Net stable builds are avaible on NuGet.org through the Airly.Net meta package
You can compile our library with the following dependencies
Visual Studio 8.8+
.NET Core SDK 5.0+
Or via .NET Command line CLI
.NET Core SDK 5.0+
C# 9.0+
for all combinations
string myApiKey = "myFullyGoodAirlyApiKey"; // Define your apikey
Airly client = new Airly(myApiKey); // Create new instance of the Api Client
Location location = new Location(0, 0) // Provide coordinates (lat, lng)
AirMeasurment measurment = await client.Measurments.Nearest(location) // Pass it
DateTime fromMeasurmentDateTime = measurment.Current.FromDateTime; // Destruct actual measurments from date time
Console.WriteLine(fromMeasurmentDateTime.ToString()); // Show it over the world
Always remember to add after packet installation using AirlyNet
Note: you need to add using AirlyNet.Models
in case to use Location
, AirAddress
etc.