Expand description
Builder for the create client endpoint.
https://api.mangadex.org/docs/swagger.html#/ApiClient/post-create-apiclient https://api.mangadex.org/docs/redoc.html#tag/ApiClient/operation/post-create-apiclient
use mangadex_api::MangaDexClient;
// use mangadex_api_types::{Password, Username};
use mangadex_api_types::ApiClientProfile;
let client = MangaDexClient::default();
/*
Put your login script here
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
*/
let client_res = client
.client()
.post()
.name("My Client")
.profile(ApiClientProfile::Personal)
.description("It's my personal API Client for the mangadex-api :)")
.send()
.await?;
println!("Client creation: {:?}", client_res);
Structsยง
- Create a new api client.
- Builder for
CreateClient
.