#api-client #api-bindings #candy #house #inc #sesame

sesame_rs

API Client for Sesame by CANDY HOUSE, Inc

3 releases

Uses old Rust 2015

0.1.3 Jul 30, 2017
0.1.2 Jul 14, 2017
0.1.1 Jul 1, 2017
0.1.0 Jul 1, 2017

#4 in #inc

MIT license

13KB
298 lines

sesame-rs Build Status Crates.io

Rust Client for Sesame made by CANDY HOUSE, Inc.

Installation

Add this to your Cargo.toml

[dependencies]
sesame_rs = "*"

Usage

extern crate sesame_rs;

use sesame_rs::*;

fn main() {

    // Initialize client
    let client = SesameClient::new();

    // Login to your account
    client.login(email, password).ok();

    for mut sesame in client.list_sesames().unwrap() {
        // Lock your sesame
        sesame.lock().ok();

        // Unlock your sesame
        sesame.unlock().ok();
    }
}

Dependencies

~9–18MB
~230K SLoC