Browse Source

Skeleton for the monolith

master
Julio Biason 6 years ago
parent
commit
6a7416a70c
  1. 1686
      Cargo.lock
  2. 1
      Cargo.toml
  3. 16
      src/main.rs

1686
Cargo.lock generated

File diff suppressed because it is too large Load Diff

1
Cargo.toml

@ -5,3 +5,4 @@ authors = ["Julio Biason <julio.biason@pm.me>"]
edition = "2018"
[dependencies]
elefren = "0.19"

16
src/main.rs

@ -1,3 +1,17 @@
use elefren::prelude::*;
use elefren::helpers::cli;
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…
Cancel
Save