oxibooru-client/szurubooru-client
2026-08-16 22:44:39 +02:00
..
src use f32 for note coordinates 2025-03-23 14:56:52 +01:00
szurubooru_client docs(docs): in-code fixes for documentation 2024-09-05 13:43:08 -07:00
Cargo.toml fix(cargo): bumping pyo3 version 2026-08-16 22:44:39 +02:00
CHANGELOG.md bump: version 0.6.2 → 0.7.0 2026-08-16 22:44:39 +02:00
pyproject.toml feat(pyproject_toml): enabling python 3.7 support so this will work on my raspberry pi 2024-09-05 21:44:14 -07:00
README.md Reorganizing and documenting 2024-08-09 09:18:12 -07:00

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.