AstroWay/api v2.254.12 · it
tutti i sistemi sono operativi
// sdk · C# / .NET

SDK C# per l'API AstroWay

Pacchetto Astroway.Sdk: ogni endpoint API come metodo async, ad esempio aw.Chart.ComputeAsync, annullabile con un CancellationToken. I retry su 408/409/429/5xx rispettano Retry-After, ogni tipo di errore ha la sua eccezione, e la risposta viene deserializzata nei tuoi record. .NET Standard 2.0 e .NET 8: .NET Framework 4.7.2+, .NET 6/8/9, Unity.

// 01 / install

Installa

dotnet add package Astroway.Sdk
PackageReference <PackageReference Include="Astroway.Sdk" Version="0.1.0" />
Package Manager Install-Package Astroway.Sdk

importa: using Astroway;

// 02 / highlights

Funzionalità

// 03 / first request

Prima richiesta

using Astroway;

using var aw = new AstrowayClient(Environment.GetEnvironmentVariable("ASTROWAY_API_KEY")!);

var res = await aw.Chart.ComputeAsync(new
{
    date = "1990-07-14", time = "14:30:00", timezoneOffset = 3,
    latitude = 50.4501, longitude = 30.5234, houseSystem = "P",
});

var chart = res.Deserialize<Chart>()!;
Console.WriteLine(chart.Houses.Ascendant); // 212.0952574979425

record Houses(double Ascendant);
record Chart(Houses Houses);

Inizia con C# / .NET

10.000 crediti gratis al mese. SDK open-source, generato da OpenAPI 3.1, sempre sincronizzato con il backend.

99.9% SLA · piani a pagamento · 30d stato →