Julio Biason
6 years ago
3 changed files with 1702 additions and 1 deletions
@ -1,3 +1,17 @@ |
|||||||
|
use elefren::prelude::*; |
||||||
|
use elefren::helpers::cli; |
||||||
|
|
||||||
fn main() { |
fn main() { |
||||||
println!("Hello, world!"); |
let registration = Registration::new("https://functional.cafe") |
||||||
|
.client_name("downfav") |
||||||
|
.build() |
||||||
|
.unwrap(); |
||||||
|
let client = cli::authenticate(registration).unwrap(); |
||||||
|
|
||||||
|
println!("{:?}", client |
||||||
|
.get_home_timeline().unwrap() |
||||||
|
.items_iter() |
||||||
|
.take(100) |
||||||
|
.collect::<Vec<_>>() |
||||||
|
); |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue