Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.
/ Meting4Net Public archive

🍰 一个强大的音乐API框架。 Such a powerful music API framework for .Net

License

Notifications You must be signed in to change notification settings

yiyungent/Meting4Net

Repository files navigation

Meting4Net

Meting4Net

🍰 一个强大的音乐API框架

repo size LICENSE FOSSA Status nuget downloads QQ Group

English

介绍

Meting4Net: Meting for .Net, thanks to Meting.

一个强大的音乐API框架促进你的开发

  • 优雅 - 简单易用, 对于所有平台均可一个标准格式.
  • 丰富 - 支持多个音乐平台, 包括 腾讯QQ音乐, 网易云音乐, 虾米音乐, 酷狗, 百度等.
  • 免费 - MIT协议 发布

TODO

  • 网易云音乐 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 Build Status
Linux mono 5.18.0.240 Build Status

依赖

只需要满足下方其中一条.

  • .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 的贡献

开放源代码许可

FOSSA Status

Contributors

Thanks goes to these wonderful people (emoji key):

yiyun
yiyun

💻 📖 💡 🚧 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

赞助者

感谢这些来自爱发电的赞助者:

MonoLogueChi
点我 打开/关闭 赞助者列表 MonoLogueChi ( 1 次赞助, 共 ¥28.2 ) 留言: 感谢你的开源项目

本项目使用 afdian-action 自动更新赞助者列表

Donate

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:

Author

Meting4Net © yiyun, Released under the MIT License.
Authored and maintained by yiyun with help from contributors (list).

GitHub @yiyungent