Module mangadex_api::v5::upload::get_session
source · [−]Expand description
Builder for getting the current user’s upload session endpoint.
https://api.mangadex.org/swagger.html#/Upload/get-upload-session
Examples
use uuid::Uuid;
use mangadex_api::MangaDexClient;
use mangadex_api::types::{Password, Username};
let client = MangaDexClient::default();
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let res = client
.upload()
.get_session()
.build()?
.send()
.await?;
println!("current upload session: {:?}", res);
Structs
Enums
Error type for GetUploadSessionBuilder