Expand description
Builder for the create manga endpoint.
https://api.mangadex.org/docs/swagger.html#/Manga/post-manga
use std::collections::HashMap;
use mangadex_api::MangaDexClient;
// use mangadex_api_types::{Password, Username};
use mangadex_api_types::Language;
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 manga_res = client
.manga()
.post()
.add_title((Language::English, "My New Manga Title".to_string()))
.send()
.await?;
println!("Manga creation: {:?}", manga_res);
Structsยง
- Create a new manga.
- Builder for
CreateManga
.