Rixl.Sdk
0.1.6
dotnet add package Rixl.Sdk --version 0.1.6
NuGet\Install-Package Rixl.Sdk -Version 0.1.6
<PackageReference Include="Rixl.Sdk" Version="0.1.6" />
<PackageVersion Include="Rixl.Sdk" Version="0.1.6" />
<PackageReference Include="Rixl.Sdk" />
paket add Rixl.Sdk --version 0.1.6
#r "nuget: Rixl.Sdk, 0.1.6"
#:package Rixl.Sdk@0.1.6
#addin nuget:?package=Rixl.Sdk&version=0.1.6
#tool nuget:?package=Rixl.Sdk&version=0.1.6
rixl-csharp
C# client for the RIXL API.
Install
dotnet add package Rixl.Sdk
Targets .NET 8. Brings in Microsoft.Kiota.Bundle (HTTP transport, serializers).
Quick start
using Rixl.Sdk;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Bundle;
var auth = new ApiKeyAuthenticationProvider(
"YOUR_RIXL_API_KEY", "X-API-Key", ApiKeyLocation.Header);
var adapter = new DefaultRequestAdapter(auth);
var client = new RixlClient(adapter);
var image = await client.Images["PS5IMKoFLm"].GetAsync();
Console.WriteLine($"{image?.Id} {image?.Width}x{image?.Height}");
Default base URL: https://api.rixl.com. Override with adapter.BaseUrl = "...".
Resources
// Feeds
var posts = await client.Feeds["FD4y3QB38S"].GetAsync();
// Images — list, get, delete
var page = await client.Images.GetAsync();
var image = await client.Images["PS5IMKoFLm"].GetAsync();
await client.Images["PS5IMKoFLm"].DeleteAsync();
// Videos
var videos = await client.Videos.GetAsync();
var video = await client.Videos["VI9VXQxWXQ"].GetAsync();
Upload (init → PUT bytes to presigned URL → complete) follows the same pattern as the other RIXL SDKs.
Errors
API errors (400/401/403/404/500) are thrown as Rixl.Sdk.Models.Github_com_rixlhq_api_internal_errors.ErrorResponse exceptions; catch and inspect Code / Error.
Support
Open an issue at github.com/rixlhq/rixl-csharp.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- Microsoft.Kiota.Bundle (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.