No description
  • Rust 95.2%
  • Python 4.7%
  • Shell 0.1%
Find a file
2024-08-22 07:25:56 -07:00
.github/workflows ci(ci_yaml): adding release on tag and unit/integration test running 2024-08-22 07:25:56 -07:00
szurubooru-client refactor(python): adding custom python modules to possibly help with documentation 2024-08-21 10:56:45 -07:00
szurubooru-client-docs docs(docs): adding initial mkdocs build 2024-08-21 10:57:37 -07:00
tests test(python): adding python integration test 2024-08-21 08:38:23 -07:00
.cz.toml ci(cz): adding commitizen config 2024-08-10 18:04:07 -07:00
.gitignore refactor(python): adding custom python modules to possibly help with documentation 2024-08-21 10:56:45 -07:00
.pre-commit-config.yaml fix(models): fixing parsing of snapshot data 2024-08-11 13:36:39 -07:00
Cargo.lock test(szurubooru-integration-test): removing old integration test, relocated to /tests directory 2024-08-21 07:32:42 -07:00
Cargo.toml test(szurubooru-integration-test): removing old integration test, relocated to /tests directory 2024-08-21 07:32:42 -07:00
CHANGELOG.md docs(changelog): updating changelog 2024-08-12 01:06:34 -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.