| Crates.io | szurubooru-client |
| lib.rs | szurubooru-client |
| version | 0.6.2 |
| created_at | 2024-08-09 16:24:23.091243+00 |
| updated_at | 2024-09-06 19:36:30.746598+00 |
| description | A wrapper around the Szurubooru API, including type-safe Query and Sort tokens |
| homepage | |
| repository | https://github.com/slyons/szurubooru-client |
| max_upload_size | |
| id | 1331138 |
| size | 298,076 |
SzurubooruClient is a wrapper around the excellently-documented Szurubooru API, including type-safe (if not API-safe) Query and Sort tokens.
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();
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.