15 releases
0.2.7 | Jan 7, 2019 |
---|---|
0.2.6 | Jan 3, 2019 |
0.2.3 | Dec 27, 2018 |
0.1.6 | Dec 18, 2018 |
#7 in #submission
33 downloads per month
32KB
549 lines
A HTTP API to interface with Postmill sites.
This should make writing bots a lot easier.
Examples
use postmill::Client;
let mut client = Client::new("https://raddle.me")?;
// Login
client.login("rust_postmill_test", "rust_postmill_test")?;
// Submit a new post
client.submit_post("TestGround", "https://git.sr.ht/~foss/postmill", "Test submission title", "Test submission body")?;
use postmill::Client;
let mut client = Client::new("https://raddle.me")?;
// Print all the submission titles of a page
for submission in client.submissions_from_page("new")? {
println!("Title: {}", submission.title);
}
Dependencies
~22MB
~467K SLoC