ncm_api

Crates.ioncm_api
lib.rsncm_api
version0.1.3
sourcesrc
created_at2022-06-10 06:31:44.444135
updated_at2022-06-24 04:27:51.295336
description网易云音乐API
homepage
repository
max_upload_size
id603369
size29,530
ClassmateLin (ClassmateLin)

documentation

README

ncm_api

Rust语言版本的网易云API.

配置

Cargo.toml添加依赖

[dependencies]
ncm_api = {version="^0.1.1"}
tokio = {version="^1"}

使用

use ncm_api::{login, user};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let email = "xxx@163.com";
    let password = "password";
    let data = login::login_by_email(email, password).await?;
    println!("{:?}", data);
    let sign_res = user::daily_sign().await?;
    println!("sign res:{:?}", sign_res);
    Ok(())
}

文档

ncm_api

Commit count: 0

cargo fmt