aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 7570dcb..523772c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,8 +1,12 @@
+#[macro_use] extern crate hyper;
+extern crate notify_rust;
+extern crate rustc_serialize;
+extern crate toml;
+extern crate websocket;
+
use std::fs::File;
use std::io::prelude::*;
-extern crate notify_rust;
-extern crate toml;
use notify_rust::Notification;
pub mod message;
@@ -27,6 +31,10 @@ fn main() {
let mut client = PBClient::new(token.as_ref());
+ println!("Starting Pushbullet client...");
+
+ println!("{:?}", client.get_user().expect("Could not get user info from server!"));
+
for message in client.messages() {
match message {
Message::Push(Push::Mirror {