pb 0.2.0

Client library to work with Pushbullet REST API
extern crate pb;

use std::env;

fn main() {
    let msg = pb::PushMsg {
        title: Some("Hello, world!".into()),
        body: Some("This a push test".into()),
        target: pb::TargetIden::CurrentUser,
        data: pb::PushData::Note,
        source_device_iden: None,
    };

    let mut api = pb::PbAPI::new(&*env::var("PB_API_KEY").ok().expect("missing PB_API_KEY environment variable"));
    api.send(&msg).unwrap();
}