🍰 一个强大的音乐API框架
Meting4Net: Meting for .Net, thanks to Meting.
一个强大的音乐API框架促进你的开发
- 优雅 - 简单易用, 对于所有平台均可一个标准格式.
- 丰富 - 支持多个音乐平台, 包括 腾讯QQ音乐, 网易云音乐, 虾米音乐, 酷狗, 百度等.
- 免费 - MIT协议 发布
- 网易云音乐 Meting Open API 移植完成 v0.1.0
- 腾讯QQ音乐 Meting Open API 移植完成 v0.2.0
- 酷狗音乐 Meting Open API 移植完成 v1.0.0
- 虾米, 百度音乐 Meting Open API 移植完成 v1.1.0
- 支持返回强类型实体对象 eg: SearchObj("千里邀月") v1.1.0
- Meting4Net 跟随 Meting 更新
环境 | 平台 | 状态 |
---|---|---|
Ubuntu-16.04 | .net core 2.0.0 | |
Linux | mono 5.18.0.240 |
只需要满足下方其中一条.
- .NET Framework (>= 4.0) 且 Newtonsoft.Json (>= 4.5.11) 被安装.
- .NET Standard (>= 2.0) 且 Microsoft.CSharp (>= 4.5.0), Newtonsoft.Json (>= 9.0.1) 被安装.
推荐使用 NuGet, 在你项目的根目录 执行下方的命令, 如果你使用 Visual Studio, 这时依次点击 Tools -> NuGet Package Manager -> Package Manager Console , 确保 "Default project" 是你想要安装的项目, 输入下方的命令进行安装.
PM> Install-Package Meting4Net
using Meting4Net.Core;
...
// 初始化 网易云音乐API
Meting api = new Meting(ServerProvider.Netease);
// 获得 json 数据
string jsonStr = api.FormatMethod(true).Search("Soldier", new Meting4Net.Core.Models.Standard.Options
{
page = 1,
limit = 50
});
return Content(jsonStr, "application/json");
//[{"id":"35847388","name":"Hello","artist":["Adele"],"album":"Hello","pic_id":"1407374890649284","url_id":"35847388","lyric_id":"35847388","source":"netease"},{"id":"33211676","name":"Hello","artist":["OMFG"],"album":"Hello",...
- 运行环境: .NET Framework (>= 4.0) or .NET Standard (>= 2.0)
- 开发环境: Visual Studio Community 2017
- 本项目由 Meting 移植而来,感谢原作者 metowolf 的贡献
- 网易云音乐API加密模块参考自 Music163Api,感谢作者 IllyaTheHath 的贡献
Thanks goes to these wonderful people (emoji key):
yiyun 💻 📖 💡 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!
感谢这些来自爱发电的赞助者:
本项目使用 afdian-action 自动更新赞助者列表
Meting4Net is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
We accept donations through these channels:
Meting4Net © yiyun, Released under the MIT License.
Authored and maintained by yiyun with help from contributors (list).
GitHub @yiyungent