Cord.SDK
1.0.0-RC.6
dotnet add package Cord.SDK --version 1.0.0-RC.6
NuGet\Install-Package Cord.SDK -Version 1.0.0-RC.6
<PackageReference Include="Cord.SDK" Version="1.0.0-RC.6" />
<PackageVersion Include="Cord.SDK" Version="1.0.0-RC.6" />
<PackageReference Include="Cord.SDK" />
paket add Cord.SDK --version 1.0.0-RC.6
#r "nuget: Cord.SDK, 1.0.0-RC.6"
#:package Cord.SDK@1.0.0-RC.6
#addin nuget:?package=Cord.SDK&version=1.0.0-RC.6&prerelease
#tool nuget:?package=Cord.SDK&version=1.0.0-RC.6&prerelease
<img src="./src/Cord.SDK/header.png" /> <br/> <p align="center" style="display: flex; align-items: center; justify-content: center;"> <h1 align="center">Cord .NET SDK</h1> <p align="center"> Toolkit for the Cord. <br/> <br/> </p> </p>
About The Project
It is a Software Development Kit project for the .NET platform where you can interact with Cord. It aims to be able to use REST ends on Cord and execute authentication processes.
Getting Started
To start using it, include it in your project using the .NET CLI or Package Manager.
Installation
.NET CLI
dotnet add package Cord.SDK
Package Manager
NuGet\Install-Package Cord.SDK
Configuration
NET project, you can make SDK related configurations as in the example below.
builder.Services.AddCordSdk(opt =>
{
opt.ApplicationId = "ID";
opt.Secret = "SECRET";
});
| Property | Type | Description | Required | Default |
|---|---|---|---|---|
| ApplicationId | string |
Application id for Rest API access | ✅ | |
| Secret | string |
Secret key for Rest API access | ✅ | |
| ClientTokenExpiration | int |
Specifies the expiration time in minutes of the token required for users to connect to Cord. | ❌ | 60 |
| ServerTokenExpiration | int |
Specifies the expiration time in minutes of the token to be used by the server in Rest API communication. | ❌ | 1440 |
Usage
To access Cord services, inject the ICord interface into your method or class.
async Task MyMethod([FromServices] ICord cord)
{
cord.Users.V1.*****
}
public class MyClass
{
private readonly ICord _cord;
public MyClass(ICord cord) => _cord = cord;
public async Task MyMethod()
{
_cord.Organizations.V1.*****
}
}
All methods of services for the Rest API have implemented CancellationToken.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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. |
-
net6.0
- JsonWebToken (>= 2.0.0-beta.4)
- MediatR (>= 12.0.1)
- Microsoft.Extensions.Configuration (>= 6.0.0)
- Microsoft.Extensions.Hosting (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- RestSharp (>= 110.2.1-alpha.0.2)
- RestSharp.Serializers.NewtonsoftJson (>= 110.2.0)
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 |
|---|---|---|
| 1.0.0-RC.6 | 1,221 | 2/3/2024 |
| 1.0.0-RC.5 | 92 | 2/3/2024 |
| 1.0.0-RC.4 | 573 | 9/23/2023 |
| 1.0.0-RC.3 | 135 | 9/8/2023 |
| 1.0.0-RC.2 | 130 | 9/8/2023 |
| 1.0.0-RC.1 | 1,270 | 7/21/2023 |