No description
  • Rust 95.2%
  • Python 4.7%
  • Shell 0.1%
Find a file
Scott Lyons a139d3efe3 fix(client): fixing tokens to not be encoded wholesale
Query tokens weren't working because they were being encoded entirely. Switched to encoding the key and value separately
2024-08-10 19:34:17 -07:00
szurubooru-client fix(client): fixing tokens to not be encoded wholesale 2024-08-10 19:34:17 -07:00
szurubooru-integration-test test(integration-test): adding pool CRUD operations 2024-08-10 19:01:29 -07:00
.cz.toml ci(cz): adding commitizen config 2024-08-10 18:04:07 -07:00
.gitignore Fixes found through integration test crate 2024-08-10 00:26:07 -07:00
.pre-commit-config.yaml build(pre-commit): restoring previous pre-commit settings 2024-08-10 18:18:49 -07:00
Cargo.lock fix(client): fixing pool CRUD operations 2024-08-10 19:00:37 -07:00
Cargo.toml Adding integration test crate 2024-08-09 11:33:09 -07:00
CHANGELOG.md bump: version 0.1.1 → 0.2.0 2024-08-10 18:13:59 -07:00
cliff.toml docs: Adding changelog 2024-08-10 00:42:58 -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.