Crates.io | pixapi |
lib.rs | pixapi |
version | 0.1.1 |
source | src |
created_at | 2023-04-09 17:51:13.395441 |
updated_at | 2023-04-10 11:16:38.634083 |
description | An API for accessing to pixiv.net |
homepage | |
repository | |
max_upload_size | |
id | 834456 |
size | 37,842 |
API, которое используется в мобильных клиентах pixiv.net Main structure is PixivClient. Methods of this class below.
use pixapi::PixivClient;
#[tokio::main]
async fn main() {
let mut client = PixivClient::from_refresh_token("YOUR_TOKEN");
client.refresh_auth().await.unwrap();
let recommends = client.get_user_recommended().await;
println!("{:#?}", recommends);
}