Crates.io | tosho-amap |
lib.rs | tosho-amap |
version | 0.5.0 |
source | src |
created_at | 2024-02-14 10:53:06.546406 |
updated_at | 2024-08-13 08:45:01.541004 |
description | An asynchronous client of AM API by AP. |
homepage | https://tosho.dev |
repository | https://github.com/noaione/tosho-mango |
max_upload_size | |
id | 1139734 |
size | 60,525 |
A minimal asynchronous client for the AM API by AP.
The following crate is used by the tosho
app.
Download the tosho
app, or you can utilize this crate like any other Rust crate:
use tosho_amap::{AMClient, AMConfig};
#[tokio::main]
async fn main() {
let config = AMConfig {
token: "123".to_string(),
identifier: "abcxyz".to_string(),
session_v2: "xyz987abc".to_string(),
};
let client = AMClient::new(config);
let manga = client.get_comic(48000051).await.unwrap();
println!("{:?}", manga);
}
The following sources only have one method of authentication, and that method uses your email and password.
$ tosho am auth email password
Or, if you use this crates as library:
use tosho_amap::AMClient;
#[tokio::main]
async fn main() {
let login_res = AMClient::login("test@mail.com", "mypassword").await.unwrap();
}
This project is designed as an experiment and to create a local copy for personal use. These tools will not circumvent any paywall, and you will need to purchase and own each chapter with your own account to be able to make your own local copy.
We're not responsible if your account got deactivated.
This project is licensed with MIT License (LICENSE or http://opensource.org/licenses/MIT)