diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-09 21:17:11 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-09 21:17:11 +0000 |
commit | 17c6e1ecf82d5a68eccdd62f7a9d757d101759fb (patch) | |
tree | f94e1bd4f0dd761074d680048c809801da4bb399 /src/bin/main.rs |
Init commit. Get json using async reqwest
Diffstat (limited to 'src/bin/main.rs')
-rw-r--r-- | src/bin/main.rs | 14 |
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); +} |