CelesTrakSdk 0.0.11
dotnet add package CelesTrakSdk --version 0.0.11
NuGet\Install-Package CelesTrakSdk -Version 0.0.11
<PackageReference Include="CelesTrakSdk" Version="0.0.11" />
paket add CelesTrakSdk --version 0.0.11
#r "nuget: CelesTrakSdk, 0.0.11"
// Install CelesTrakSdk as a Cake Addin #addin nuget:?package=CelesTrakSdk&version=0.0.11 // Install CelesTrakSdk as a Cake Tool #tool nuget:?package=CelesTrakSdk&version=0.0.11
CelesTrakSdk
Introduction
This is a C# SDK for working with the CelesTrak APIs. These APIs are largely modified versions of the Space Track APIs that are slightly easier to work with and have some QoL improvements.
Currently, only the SATCAT Records API is implemented, this may be expanded on in the future.
Getting Started
There are two packages CelesTrakSdk
and CelesTrakSdk.Microsoft.Extensions.DependencyInjection
, you'll want to install both using NuGet.
Register the services with your DI provider using:
services.AddCelesTrakServices();
This API has no authentication, so that's all there is to it.
You should then be able to inject ICelesTrakClient
into any of your services.
Getting Data
There are currently three methods on the client interface:
public interface ICelesTrakClient
{
public Task<SatCatRecord?> GetRecord(SatCatRecordQueryType queryType, string queryValue);
public Task<List<SatCatRecord>> GetRecords(SatCatRecordQueryType queryType, string queryValue);
public Task<List<SatCatRecord>> GetAllRecords();
}
You can get a single record, get a group of records, or get all records.
Queries are very simple, consisting of a type and a value. The following types are available, these are defined by CelesTrak:
- CatalogNumber
- InternationalDesignator
- Group
- Name
- Special
It's worth noting, this SDK currently does no validation of query values. Furthermore, if a query passed to .GetRecord()
returns multiple values, only the first will be returned.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- CsvHelper (>= 32.0.1)
- EnumExtensions.System.Text.Json (>= 1.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CelesTrakSdk:
Package | Downloads |
---|---|
CelesTrakSdk.Microsoft.Extensions.DependencyInjection
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.