No description
Find a file
2024-01-01 22:16:58 +01:00
src Add request limiter 2024-01-01 21:50:57 +01:00
.gitignore WIP posts parameter 2024-01-01 21:50:57 +01:00
Cargo.lock Increase version number to 0.2 2024-01-01 21:50:57 +01:00
Cargo.toml Add info for crates.io to Cargo.toml 2024-01-01 21:57:14 +01:00
README.md Add decent README.md 2024-01-01 22:16:58 +01:00

r621

A simple e621 client using requwest.

Features

Implemented

  • Post
    • Listing

Missing

  • Post
    • Create
    • Update
    • Flag
    • Vote
    • Favorite
  • Favorites
    • Listing
    • Create
    • Delete
  • Tags
    • Listing
  • Tag Aliases
    • Listing
  • Tag Implications
    • Listing
  • Notes
    • Listing
    • Create
    • Update
  • Pools
    • Listing
    • Create
    • Update
    • Revert

Example Usage

use r621::client::{Authentication, Client};
use r621::post::Post;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let user_agent = "MyProject/1.0 (by username on e621)";
    let auth = Authentication::Authorized {
        username: "hexerade",
        apikey: "1nHrmzmsvJf26EhU1F7CjnjC"
    };
    
    let mut esix_client = Client::new(auth, user_agent);
    let posts = esix_client.list_posts(None, query, None).await?;
}