Crates.io | sesame_rs |
lib.rs | sesame_rs |
version | 0.1.3 |
source | src |
created_at | 2017-07-01 10:57:24.726688 |
updated_at | 2017-07-30 07:04:15.944877 |
description | API Client for Sesame by CANDY HOUSE, Inc. |
homepage | |
repository | https://github.com/MichaeGon/sesame-rs |
max_upload_size | |
id | 21437 |
size | 14,470 |
Rust Client for Sesame made by CANDY HOUSE, Inc.
Add this to your Cargo.toml
[dependencies]
sesame_rs = "*"
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();
}
}