13 Star 74 Fork 16

yiyun / Meting4Net

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 6.12 KB
一键复制 编辑 原始数据 按行查看 历史
yiyun 提交于 2022-01-01 15:31 . ci: 爱发电自动更新赞助者列表

Meting4Net

Meting4Net

:cake: 一个强大的音乐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!

赞助者

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

本项目使用 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

C#
1
https://gitee.com/yiyungent/Meting4Net.git
git@gitee.com:yiyungent/Meting4Net.git
yiyungent
Meting4Net
Meting4Net
master

搜索帮助