szurubooru-client

Crates.ioszurubooru-client
lib.rsszurubooru-client
version0.6.2
sourcesrc
created_at2024-08-09 16:24:23.091243
updated_at2024-09-06 19:36:30.746598
descriptionA wrapper around the Szurubooru API, including type-safe Query and Sort tokens
homepage
repositoryhttps://github.com/slyons/szurubooru-client
max_upload_size
id1331138
size298,076
Scott Lyons (slyons)

documentation

README

szurubooru-client

SzurubooruClient is a wrapper around the excellently-documented Szurubooru API, including type-safe (if not API-safe) Query and Sort tokens.

Creating a new client

Basic authentication

Please keep in mind that this is not the preferred method of authentication. Tokens are far superior.

use szurubooru_client::SzurubooruClient;
let client = SzurubooruClient::new_with_basic_auth("http://localhost:5001", "myuser",
    "mypassword", true).unwrap();

Token authentication

The far superior and more secure means of authentication

use szurubooru_client::SzurubooruClient;
let client = SzurubooruClient::new_with_token("http://localhost:5001", "myuser", "sz-123456", true).unwrap();

For all other methods for making the requests, see the documentation.

Commit count: 0

cargo fmt