[][src]Crate postmill

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);
}

Structs

Client
CommentInfo
SubmissionInfo