Git Product home page Git Product logo

sesame-net's Introduction

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. Configure a Sesame API Key on the CandyHouse Dashboard.

  2. Initialize an instance of SesameClient.

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

sesame-net's People

Contributors

veleek avatar

Stargazers

ksasao avatar hikari avatar Marc Stevenson avatar Asoul Yang avatar

Watchers

Marc Stevenson avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.