IronSight.Client
0.0.6-beta
dotnet add package IronSight.Client --version 0.0.6-beta
NuGet\Install-Package IronSight.Client -Version 0.0.6-beta
<PackageReference Include="IronSight.Client" Version="0.0.6-beta" />
<PackageVersion Include="IronSight.Client" Version="0.0.6-beta" />
<PackageReference Include="IronSight.Client" />
paket add IronSight.Client --version 0.0.6-beta
#r "nuget: IronSight.Client, 0.0.6-beta"
#:package IronSight.Client@0.0.6-beta
#addin nuget:?package=IronSight.Client&version=0.0.6-beta&prerelease
#tool nuget:?package=IronSight.Client&version=0.0.6-beta&prerelease
IronSight.Client
The official IronSight .NET library, targeting .NET Standard 2.1+.
Installation
Using the .NET Core command-line interface (CLI) tools:
dotnet add package IronSight.Client
Using the NuGet Command Line Interface (CLI):
nuget install IronSight.Client
Using the Package Manager Console:
Install-Package IronSight.Client
From within Visual Studio:
- Open the Solution Explorer.
- Right-click on a project within your solution.
- Click on Manage NuGet Packages...
- Click on the Browse tab and search for "IronSight.Client".
- Click on the IronSight.Client package, select the appropriate version in the right-tab and click Install.
Documentation
For complete API docs check out the documentation portal.
Usage
Authentication
IronSight authenticates API requests with a bearer token, which can be acquired by .... TODO: Add steps
Use the IronSightClient
constructor to set your bearer token.
var client = new IronSightClient(yourBearerToken);
Using the API
All resource types can be accessed through the IronSightClient
class.
var myHubId = "my-hub";
Hub hubs = client.Hubs.Get(myHubId);
IEnumerable<Division> divisions = client.Divisions.GetAll(myHubId);
Retrieving a resource
Individual resources can be retrieved by ID using the Get
or GetAsync
methods.
var myHubId = "my-hub";
Hub hubs = client.Hubs.Get(myHubId);
Listing a resource
Listing resources can be done using the GetAll
or GetAllAsync
methods.
Some resource types will return all resources with a single call, as an IEnumerable
.
IEnumerable<Hub> = client.Hubs.GetAll();
Others may return one page of resources at a time:
PaginatedList<Location> locationsPageOne = client.Locations.GetAll();
foreach (Location location in locationsPageOne) {
Console.WriteLine($"Location {location.Name}");
}
PaginatedList<Location> locationsPageTwo = client.Locations.NextPage(locationsPageOne);
Using a custom HttpClient
You can configure the library with your own custom HttpClient
:
var client = new IronSightClient(yourHttpClient);
Note If you provide a custom
HttpClient
it is responsible for sending a bearer token for authorization.
Automatic retries
The library automatically retries requests on intermittent failures like on a connection error, timeout, etc.
Support
TODO: What do we tell people about getting help with the SDK?
Product | Versions 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.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- IronSight.Models (>= 0.0.6-beta)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.1)
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Polly (>= 8.4.2)
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 | |
---|---|---|---|
0.0.6-beta | 68 | 2/21/2025 | |
0.0.5-beta | 59 | 1/15/2025 | |
0.0.4-beta | 52 | 1/15/2025 | |
0.0.2-beta2d | 63 | 1/15/2025 |