Crate pshbullet_client [−] [src]
Unofficial Pushbullet API client.
This crate has support for a limited set of the APIs.
Push API
- create-push -- except for the file type push
- list-push
- update-push -- not supported
- delete-push -- not supported
- delete-all-pushes -- not supported
Device API
- list-devices
- create-device -- not supported
- update-device -- not supported
- delete-device -- not supported
Chat, Subscription, User, Upload API are not supported.
Examples
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.
Modules
device |
Pushbullet Device API |
push |
Pushbullet Push API |
Structs
AccessToken | |
PushbulletClient |
Pushbullet API Client |
RatelimitLimit | |
RatelimitRemaining | |
RatelimitReset | |
ResponseHeaders |
Functions
date_time2float_unix_time |
Convert |
float_unix_time2date_time |
Convert unix timestamp in floating point seconds to |