[−][src]Crate rapr
Reddit api wrapper
Example program
You need tokio to use this.
Make sure to use tokio = { version = "1.3.*", features = ["full"] }
extern crate rapr; extern crate tokio; use crate::rapr::{RaprClient,RaSub}; #[tokio::main] async fn main() { let client = RaprClient::new(); let mut sub = RaSub::new("pics"); client.fetch(10, &mut sub).await.unwrap(); for post in sub.posts { println!("{}",post.title); } }
Structs
| RaPost | Reddit post object
(more like repost object). |
| RaSub | RaSub |
| RaprClient | Reddit api client. |