Browse code

Go through favorites instead

Julio Biason authored on 09/05/2019 08:31:26
Showing 1 changed files

... ...
@@ -8,10 +8,10 @@ fn main() {
8 8
         .unwrap();
9 9
     let client = cli::authenticate(registration).unwrap();
10 10
 
11
-    println!("{:?}", client
12
-             .get_home_timeline().unwrap()
13
-             .items_iter()
14
-             .take(100)
15
-             .collect::<Vec<_>>()
16
-             );
11
+    client
12
+        .favourites().unwrap()
13
+        .items_iter()
14
+        .take(2)
15
+        .for_each(move |record| println!("{:#?}", record))
16
+        ;
17 17
 }