https://github.com/seamapi/csharp
CSharp SDK autogenerated from nextlove types.
https://github.com/seamapi/csharp
maintained
Last synced: 5 months ago
JSON representation
CSharp SDK autogenerated from nextlove types.
- Host: GitHub
- URL: https://github.com/seamapi/csharp
- Owner: seamapi
- Created: 2023-09-21T22:58:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-23T23:33:19.000Z (5 months ago)
- Last Synced: 2025-01-28T03:13:06.925Z (5 months ago)
- Topics: maintained
- Language: C#
- Homepage:
- Size: 919 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Seam C#
[](https://github.com/seamapi/nextlove-sdk-csharp/actions/workflows/check.yml)
Seam
## Local setup
For C# development, you will need to install `dotnet`
Download the installer [here](https://learn.microsoft.com/en-us/dotnet/core/install/macos)
Then, you may need to create a symlink
```bash
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
```Finally, install csharpier
```bash
# if you don't yet have a .config/dotnet-tools.json file
dotnet new tool-manifestdotnet 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
```bash
npm run generate
```## Installation
Use [nuget](https://www.nuget.org/packages/Seam) to install.
## Usage
```csharp
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");
```