Crate bilibili_api_rs

source ·
Expand description

bilibili-api-rs is a rust library project got inspiration from bilibili-api.

Currently “GET” apis only. Api interface User, Xlive derive from Client.

Api result is part of response, alike bilibili-api, is response[“data”]. Invalid response treated as error then bail.

Example

use bilibili_api_rs::Client;
#[tokio::test]
async fn test_xlive() -> Result<()> {
    let cli = Client::new();
    let xlive = cli.xlive();
    let lives = xlive.list(2).await?;
    Ok(())
}

Re-exports

Modules

Traits

  • Lodash-like get helper, implemented for serde_json