No description
  • Rust 95.2%
  • Python 4.7%
  • Shell 0.1%
Find a file
2024-08-09 11:33:09 -07:00
szurubooru-client Adding required fields for publishing 2024-08-09 09:21:57 -07:00
szurubooru-integration-test Adding integration test crate 2024-08-09 11:33:09 -07:00
.gitignore Reorganizing and documenting 2024-08-09 09:18:12 -07:00
.pre-commit-config.yaml Adding initial code for Suzurubooru client 2024-08-09 00:12:47 -07:00
Cargo.lock Adding integration test crate 2024-08-09 11:33:09 -07:00
Cargo.toml Adding integration test crate 2024-08-09 11:33:09 -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.