Sesame API for .NET
Switch branches/tags
Clone or download
Latest commit 245d0e9 Sep 24, 2018
Permalink
Failed to load latest commit information.
Sesame Update to Sesame V3 API Sep 24, 2018
SesameTest Update to Sesame V3 API Sep 24, 2018
.gitignore Initial Sesame API Jun 4, 2017
LICENSE Adding readme and license Jun 4, 2017
README.MD Update to Sesame V3 API Sep 24, 2018
Sesame.sln Update to Sesame V3 API Sep 24, 2018

README.MD

Sesame.NET

A .NET client for the Sesame API. Sesame.NET is licensed under the MIT license.

Installation

You can either download the Sesame.NET NuGet package or download the binaries directly from GitHub.

Usage

  1. Initialize a new SesameClient.

    string apiKey = "<Sesame API Key>";
    SesameClient client = new SesameClient(apiKey);
  2. 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();

Building

Sesame.NET is built using .NET Core (.NET Standard 1.4 and 2.0).

  1. Install .NET Core

  2. Clone the Sesame.NET repository

  3. Restore all of the NuGet packages for the project and build it

     dotnet restore
     dotnet build
    
  4. (Optional) You can generate a NuGet package using the pack command

     dotnet pack Sesame
     # To build release package
     #   dotnet pack Sesame -c Release