Cord.SDK 1.0.0-RC.6

This is a prerelease version of Cord.SDK.
dotnet add package Cord.SDK --version 1.0.0-RC.6
                    
NuGet\Install-Package Cord.SDK -Version 1.0.0-RC.6
                    
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="Cord.SDK" Version="1.0.0-RC.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cord.SDK" Version="1.0.0-RC.6" />
                    
Directory.Packages.props
<PackageReference Include="Cord.SDK" />
                    
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 Cord.SDK --version 1.0.0-RC.6
                    
#r "nuget: Cord.SDK, 1.0.0-RC.6"
                    
#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 Cord.SDK@1.0.0-RC.6
                    
#: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=Cord.SDK&version=1.0.0-RC.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cord.SDK&version=1.0.0-RC.6&prerelease
                    
Install as a Cake Tool

<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>

Downloads Contributors Issues License Nuget (with prereleases)

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 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. 
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
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