mangadex_api::v5::scanlation_group::id::follow

Module post

Source
Expand description

Builder for the follow scanlation group endpoint.

https://api.mangadex.org/docs/swagger.html#/ScanlationGroup/post-group-id-follow

§Examples

use uuid::Uuid;

use mangadex_api::v5::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 group_id = Uuid::new_v4();
let res = client
    .scanlation_group()
    .id(group_id)
    .follow()
    .post()
    .send()
    .await?;

println!("follow group: {:?}", res);

Structs§