Crates.io | ncmapi |
lib.rs | ncmapi |
version | 0.1.13 |
source | src |
created_at | 2021-07-05 09:56:58.784263 |
updated_at | 2022-08-18 18:28:26.798473 |
description | NetEase Cloud Music API for Rust. |
homepage | https://github.com/two-mountains/ncmapi-rs |
repository | https://github.com/two-mountains/ncmapi-rs |
max_upload_size | |
id | 418955 |
size | 130,185 |
NetEase Cloud Music API for Rust.
[dependencies]
ncmapi = "0.1"
tokio = { version = "1", features = ["full"] }
use ncmapi::NcmApi;
#[tokio::main]
async fn main() -> std::result::Result<(), Box<dyn std::error:Error>> {
let api = NcmApi::default();
let resp = api.cloud_search("mota", None).await;
let res = resp.unwrap().deserialize_to_implict();
println!("{:#?}", res);
Ok(())
}
Most of the functions are self documented. If there is some confusion about the params of a funtion requires, figure out here
If you think this package useful, please do make pull requests.