IronSight.Client 0.0.6-beta

This is a prerelease version of IronSight.Client.
dotnet add package IronSight.Client --version 0.0.6-beta
                    
NuGet\Install-Package IronSight.Client -Version 0.0.6-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IronSight.Client" Version="0.0.6-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IronSight.Client" Version="0.0.6-beta" />
                    
Directory.Packages.props
<PackageReference Include="IronSight.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add IronSight.Client --version 0.0.6-beta
                    
#r "nuget: IronSight.Client, 0.0.6-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package IronSight.Client@0.0.6-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=IronSight.Client&version=0.0.6-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=IronSight.Client&version=0.0.6-beta&prerelease
                    
Install as a Cake Tool

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:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages...
  4. Click on the Browse tab and search for "IronSight.Client".
  5. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 0.0.2-beta2d is deprecated.