Crates.io | pb-async |
lib.rs | pb-async |
version | 0.1.0 |
source | src |
created_at | 2018-06-19 11:25:56.687606 |
updated_at | 2018-06-19 11:25:56.687606 |
description | Asynchronous client for the PushBullet API |
homepage | |
repository | https://github.com/daboross/pb-async |
max_upload_size | |
id | 70785 |
size | 30,578 |
Asynchronous Rust PushBullet client.
Not official nor associated with PushBullet in any way.
pb-async
provides a Futures interface to the PushBullet v2 API.
Uses hyper
and native-tls
to make connections.
let token = std::env::var("PUSHBULLET_TOKEN")?;
let client = pb_async::Client::new(&token).unwrap();
tokio::run(
client.push(
pb_async::PushTarget::SelfUser {},
pb_async::PushData::Note {
title: "",
body: "Hello, user!",
},
).or_else(|error| {
eprintln!("{}", error);
Ok(())
})
);
Implemented:
Not Implemented:
pb-async
is a hobby library. I intend to maintain the project and update for any future versions of tokio
, hyper
and the PushBullet API.
I will not, however, be implementing new features. Pull Requests will be appreciated, reviewed and accepted, but I have no other plans to further this library.
Contributions are welcome.
See CONTRIBUTING for more information.