Fiedler.Libraries.IO.SDK
1.1.3
dotnet add package Fiedler.Libraries.IO.SDK --version 1.1.3
NuGet\Install-Package Fiedler.Libraries.IO.SDK -Version 1.1.3
<PackageReference Include="Fiedler.Libraries.IO.SDK" Version="1.1.3" />
<PackageVersion Include="Fiedler.Libraries.IO.SDK" Version="1.1.3" />
<PackageReference Include="Fiedler.Libraries.IO.SDK" />
paket add Fiedler.Libraries.IO.SDK --version 1.1.3
#r "nuget: Fiedler.Libraries.IO.SDK, 1.1.3"
#:package Fiedler.Libraries.IO.SDK@1.1.3
#addin nuget:?package=Fiedler.Libraries.IO.SDK&version=1.1.3
#tool nuget:?package=Fiedler.Libraries.IO.SDK&version=1.1.3
Libraries.IO.SDK
This package is a client library API wrapper for the Libraries.IO API.
Libraries.IO.SDK currently supports all of the current Libraries.IO API endpoints EXCEPT the subscriptions endpoints.
Usage
Use ILibrariesIOClient to call the desired endpoints. This package assumes the following:
- Usage of .NET dependency injection and requires registration of IHttpClientFactory.
- IConfiguration with an entry for
LIBRARIES_IO_API_KEYprovides the value of the user's Libraries IO API key. This is typically set as an environment variable but any configuration provider will do.
The ILibrariesIOClient class provides methods for each endpoint of the Libraries.IO API.
Each ILibrariesIOClient method calls the corresponding Libraries.IO API and deserializes the JSON response into strongly typed objects.
// Sample DI setup of ILibrariesIOClient
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddHttpClient();
builder.Services.AddSingleton<ILibrariesIOClient, LibrariesIOClient>();
var host = builder.Build();
// Sample usage of ILibrariesIOClient to get list of platforms from LibrariesIO
var client = host.Services.GetRequiredService<ILibrariesIOClient>();
var cts = new CancellationTokenSource();
await foreach(var platform in client.GetPlatforms(cts.Token))
{
Console.WriteLine($"Platform: {platform.Name}");
}
Documentation
For more information, please refer to the package's GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- Microsoft.Extensions.Configuration (>= 9.0.4)
- Microsoft.Extensions.Http (>= 9.0.4)
- System.Text.Json (>= 9.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.