#pixiv #api #client

pixapi

An API for accessing to pixiv.net

2 releases

0.1.1 Apr 10, 2023
0.1.0 Apr 9, 2023

#4 in #pixiv

33 downloads per month

MIT/Apache

38KB
1K SLoC

Pixiv API

API, которое используется в мобильных клиентах pixiv.net Main structure is PixivClient. Methods of this class below.

Example

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);
}

Dependencies

~5–18MB
~254K SLoC