5 releases

0.2.4 May 6, 2024
0.2.3 Feb 16, 2024
0.2.2 Feb 16, 2024
0.2.1 Jan 3, 2024
0.2.0 Jan 1, 2024

#220 in HTTP client

Download history 8/week @ 2024-09-18 11/week @ 2024-09-25

427 downloads per month

MIT license

12KB
220 lines

r621

A simple e621 client using requwest.

Buy Me a Coffee at ko-fi.com

If you would like to contact me you can reach me via Telegram

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, Some(String::from("lucario")), None).await?;
}

Dependencies

~7–22MB
~264K SLoC