WorkOS.net 0.3.0

There is a newer version of this package available.
See the version list below for details.
Install-Package WorkOS.net -Version 0.3.0
dotnet add package WorkOS.net --version 0.3.0
<PackageReference Include="WorkOS.net" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WorkOS.net --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WorkOS.net, 0.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install WorkOS.net as a Cake Addin
#addin nuget:?package=WorkOS.net&version=0.3.0

// Install WorkOS.net as a Cake Tool
#tool nuget:?package=WorkOS.net&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

workos-dotnet

Build Status NuGet version (WorkOS.net)

The official WorkOS .NET SDK supporting .NET Standard 2.0+ and .NET Framework 4.6.1+.

Documentation

Complete documentation for the library can be found here.

Installation

There are several options to install the WorkOS .NET SDK.

Via the NuGet Package Manager

nuget install WorkOS.net

Via the .NET Core Command Line Tools

dotnet add package WorkOS.net

Via Visual Studio IDE

Install-Package WorkOS.net

Configuration

To use the WorkOS client, you must provide an API key from the WorkOS dashboard.

WorkOS.SetApiKey("sk_key123");

You can also optionally provide a custom HttpClient.

var client = new WorkOSClient(
    new WorkOSOptions
    {
        ApiKey = "sk_key123",
        HttpClient = ...,
    });
WorkOS.WorkOSClient = client;

Example Usage

The example below demonstrates exchanging an authorization code for a WorkOS Profile.

var ssoService = new SSOService();
var options = new GetProfileOptions
{
    ClientId = "project_123",
    Code = "code_123",
};
var response = ssoService.GetProfile(options);

When applicable, calls can be made asynchronously and return a Task.

var response = await ssoService.GetProfileAsync(options);

Development and Testing

Run all tests with the following command:

dotnet test test/WorkOSTests/WorkOSTests.csproj

Run tests for a specific framework with the following command:

dotnet test test/WorkOSTests/WorkOSTests.csproj -f netcoreapp3.1

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.5.0 90 9/23/2021
1.4.0 93 8/16/2021
1.3.0 59 8/9/2021
1.2.0 165 6/15/2021
1.1.0 151 5/24/2021
1.0.0 65 5/12/2021
0.9.6 88 5/6/2021
0.9.5 55 5/4/2021
0.9.4 71 4/8/2021
0.9.3 87 3/4/2021
0.9.2 67 2/22/2021
0.9.1 93 2/2/2021
0.9.0 124 1/7/2021
0.8.2 106 11/30/2020
0.8.1 157 10/22/2020
0.8.0 186 10/14/2020
0.7.0 139 9/25/2020
0.6.0 168 9/24/2020
0.3.0 202 9/23/2020
0.2.0 261 9/22/2020
0.1.0 169 9/11/2020