A .NET client for the Sesame API. Sesame.NET is licensed under the MIT license.
You can either download the Sesame.NET NuGet package or download the binaries directly from GitHub.
-
Configure a Sesame API Key on the CandyHouse Dashboard.
-
Initialize an instance of
SesameClient
.string apiKey = "<Sesame API Key>"; SesameClient client = new SesameClient(apiKey);
-
Make other calls to list or control sesames.
// Get ALL Sesames associated with the account. List<Sesames> sesames = await client.ListSesamesAsync(); // Get a specific sesame and refresh it's state. Sesame sesame = sesames.FirstOrDefault(s => s.NickName == "Home"); await sesame.RefreshAsync(); // Execute operations. await sesame.LockAsync(); await sesame.UnlockAsync();
Sesame.NET is built using .NET Core (.NET Standard 1.4 and 2.0).
-
Clone the Sesame.NET repository
-
Restore all of the NuGet packages for the project and build it
dotnet restore dotnet build
-
(Optional) You can generate a NuGet package using the pack command
dotnet pack Sesame # To build release package # dotnet pack Sesame -c Release