Crates.io | orca |
lib.rs | orca |
version | 0.7.0 |
source | src |
created_at | 2017-08-17 06:11:09.537278 |
updated_at | 2018-12-16 22:51:33.473466 |
description | A Reddit API client for Rust |
homepage | |
repository | https://github.com/IntrepidPig/orca |
max_upload_size | |
id | 27818 |
size | 95,400 |
A simple reddit API interface for Rust
All data structures, or maybe pure json. Consistency is the goal.
More reddit api implementation
More complete error handling
If you've ever made a pull request on github before, you probably know more about it than me. I would really appreciate any help on this project, so if you have an idea on how to improve it, please feel free to submit an issue or pull request.
fn print_tree(listing: Listing<Comment>, level: i32) {
for comment in listing {
for _ in 0..level {
print!("\t");
}
println!("Comment by {}", comment.author);
print_tree(comment.replies, level + 1);
}
}
print_tree(tree, 0);
let mut app = App::new("appnamehere", "v0.1.0", "/u/usernamehere/").unwrap();
app.authorize_script(id, secret, username, password).unwrap();
In order to send HTTPS requests, this library depends on openssl-sys, which requires openssl development libraries to be installed on your system to build the project. Instructions detailing this process can be found here
Generic Notice: This is an unstable project yadda yadda yadda use it if you dare thanks