Crates.io | pshbullet_client |
lib.rs | pshbullet_client |
version | 0.2.1 |
source | src |
created_at | 2017-06-20 17:30:52.919673 |
updated_at | 2018-05-24 19:20:24.684781 |
description | Unofficial Pushbullet API client. |
homepage | |
repository | https://bitbucket.org/yshryk/pshbullet-client |
max_upload_size | |
id | 19744 |
size | 40,086 |
Unofficial Pushbullet API client.
This crate has support for a limited set of the APIs.
Chat, Subscription, User, Upload API are not supported.
use pshbullet_client::*;
use pshbullet_client::push::*;
fn push() {
let target = Target::Broadcast;
//let target = Target::Device("<your_device_iden>");
let note_request = Request::Note {
title: "note title",
body: "test push"
};
let client = PushbulletClient::new(String::from("<your_access_token_here>"));
let (result, headers) = client.create_push(&target, note_request).unwrap();
println!("result: {:?}", result);
println!("response headers: {:?}", headers);
}
See examples/ directory for more.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.