seamapi / csharp

CSharp SDK autogenerated from nextlove types.
1 stars 0 forks source link
maintained

Seam C

GitHub Actions

Seam

Local setup

For C# development, you will need to install dotnet

Download the installer here

Then, you may need to create a symlink

ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

Finally, install csharpier

# if you don't yet have a .config/dotnet-tools.json file
dotnet new tool-manifest

dotnet tool install -g csharpier

How to update the SDK

Once you've completed all the steps in the Local setup section, you can run the following command to update the SDK

npm run generate

Installation

Use nuget to install.

Usage

using Seam.Client;

var seam = new SeamClient(apiToken: "YOUR_API_KEY");

var myDevices = seam.Devices.List();

Console.WriteLine("First Device Name: " + myDevices[0].Properties.Name);

var accessCode = seam.AccessCodes.Create(deviceId: myDevices[0].DeviceId, code: "1234");