Expand description
§tosho-mplus
An asynchronous client for the M+ API by S.
The following crate is used by the tosho app.
§Usage
Download the tosho app, or you can utilize this crate like any other Rust crate:
use tosho_mplus::MPClient;
use tosho_mplus::proto::Language;
use tosho_mplus::constants::get_constants;
#[tokio::main]
async fn main() {
let client = MPClient::new("1234", Language::English, get_constants(1)).unwrap();
let home_view = client.get_home_page().await.unwrap();
}Available get_constants value are:
1: Android
§Authentication
The following sources do not have any easy authentication method.
The command to authenticate is tosho mp auth.
It’s recommended that you set up network intercepting first; please read INTERCEPTING.
Using the CLI, you can do this:
$ tosho mp auth secretWith crates, you can follow the above usages.
§Android
- Open the source app.
- Click on the home page or my page.
- Observe the requests on HTTP Toolkit and find the request to the API that has
secretas the query parameters. - Save that secret elsewhere and authenticate with
tosho.
§Disclaimer
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.
§License
This project is licensed with MIT License (LICENSE or http://opensource.org/licenses/MIT)
Re-exports§
pub use crate::helper::ImageQuality;
Modules§
- constants
- Provides constants used in the library.
- helper
- Provides a collection of helper Structs that can be used.
- proto
- A module containing all the models/proto mapping used in the library.
Structs§
- MPClient
- Main client for interacting with the M+ API.
Enums§
- APIResponse
- A common return type for all API calls.