summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-09 21:17:11 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-09 21:17:11 +0000
commit17c6e1ecf82d5a68eccdd62f7a9d757d101759fb (patch)
treef94e1bd4f0dd761074d680048c809801da4bb399 /src/bin
Init commit. Get json using async reqwest
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/main.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
new file mode 100644
index 0000000..8a4c870
--- /dev/null
+++ b/src/bin/main.rs
@@ -0,0 +1,14 @@
+extern crate twitch_api;
+extern crate tokio;
+extern crate dotenv;
+
+use twitch_api::TwitchApi;
+use std::env;
+
+fn main() {
+ dotenv::dotenv().unwrap();
+ let mut twitch_api = TwitchApi::new(env::var("TWITCH_API").unwrap());
+ let users = twitch_api.users(vec![], vec!["shroud"]);
+
+ tokio::run(users);
+}