https://github.com/two-mountains/ncmapi-rs
NetEase Cloud Music API for Rust
https://github.com/two-mountains/ncmapi-rs
api netease-cloud-music rust
Last synced: 7 months ago
JSON representation
NetEase Cloud Music API for Rust
- Host: GitHub
- URL: https://github.com/two-mountains/ncmapi-rs
- Owner: two-mountains
- License: mit
- Created: 2021-07-05T07:26:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T01:41:24.000Z (over 2 years ago)
- Last Synced: 2025-02-28T09:53:13.035Z (7 months ago)
- Topics: api, netease-cloud-music, rust
- Language: Rust
- Homepage:
- Size: 89.8 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ncmapi-rs
NetEase Cloud Music API for Rust.
### Usage
```toml
[dependencies]
ncmapi = "0.1"
tokio = { version = "1", features = ["full"] }
``````rust
use ncmapi::NcmApi;#[tokio::main]
async fn main() -> std::result::Result<(), Box> {
let api = NcmApi::default();
let resp = api.cloud_search("mota", None).await;let res = resp.unwrap().deserialize_to_implict();
println!("{:#?}", res);Ok(())
}
```### Document
Most of the functions are self documented. If there is some confusion about the params of a funtion requires, figure out [here](https://neteasecloudmusicapi.vercel.app)
### How it works
* api: export api functions.
* client:
* takes an ApiRequst, process it into a Request by presenting it with header and encrypt the payload etc. And then send requests to the server, takes the response and then returns the ApiResponse back.
* cache### Contribute
If you think this package useful, please do make pull requests.
### License
[MIT](LICENSE)