Skip to content

aurora0x27/qqmusic-api-cxx

Repository files navigation

 $$$$$$\   $$$$$$\  $$\      $$\ $$\   $$\  $$$$$$\  $$$$$$\  $$$$$$\      $$$$$$\  $$$$$$$\  $$$$$$\ 
$$  __$$\ $$  __$$\ $$$\    $$$ |$$ |  $$ |$$  __$$\ \_$$  _|$$  __$$\    $$  __$$\ $$  __$$\ \_$$  _|
$$ /  $$ |$$ /  $$ |$$$$\  $$$$ |$$ |  $$ |$$ /  \__|  $$ |  $$ /  \__|   $$ /  $$ |$$ |  $$ |  $$ |  
$$ |  $$ |$$ |  $$ |$$\$$\$$ $$ |$$ |  $$ |\$$$$$$\    $$ |  $$ |         $$$$$$$$ |$$$$$$$  |  $$ |  
$$ |  $$ |$$ |  $$ |$$ \$$$  $$ |$$ |  $$ | \____$$\   $$ |  $$ |         $$  __$$ |$$  ____/   $$ |  
$$ $$\$$ |$$ $$\$$ |$$ |\$  /$$ |$$ |  $$ |$$\   $$ |  $$ |  $$ |  $$\    $$ |  $$ |$$ |        $$ |  
\$$$$$$ / \$$$$$$ / $$ | \_/ $$ |\$$$$$$  |\$$$$$$  |$$$$$$\ \$$$$$$  |   $$ |  $$ |$$ |      $$$$$$\ 
 \___$$$\  \___$$$\ \__|     \__| \______/  \______/ \______| \______/    \__|  \__|\__|      \______|
     \___|     \___|                                        
                                                            
                                                            
                                    $$$$$$\  $$\   $$\ $$\   $$\ 
                                   $$  __$$\ $$ |  $$ |$$ |  $$ |
                                   $$ /  \__|\$$\ $$  |\$$\ $$  |
                                   $$ |       \$$$$  /  \$$$$  / 
                                   $$ |       $$  $$<   $$  $$<  
                                   $$ |  $$\ $$  /\$$\ $$  /\$$\ 
                                   \$$$$$$  |$$ /  $$ |$$ /  $$ |
                                    \______/ \__|  \__|\__|  \__|

这是使用C++进行封装的部分QQMusic API, 被用于项目qqmusic-cli

使用详见项目文档

Brief introduction

基于项目QQMusicApi, 使用现代C++编写的QQ音乐Api接口:

  • 使用Boost Asio提供的协程进行异步操作

  • 使用Result.h提供统一的报错机制, 禁用异常

  • 统一使用Nlohmann Json提供的Json数据结构作为返回值, 便于上层应用程序封装

Dependencies

Download

Important

正常使用请从main分支下载, 如要获取最新的更改, 请切换到dev分支

Build

支持的编译器版本: gcc >= 13, clang >= 19, msvc

CMake

  • 构建示例程序
cmake -B build -DQQMUSIC_API_BUILD_TYPE=Demo

cmake --build build
  • 构建动态库
cmake -B build -DQQMUSIC_API_BUILD_TYPE=SharedLib

cmake --build build
  • 构建测试
cmake -B build -DQQMUSIC_API_BUILD_TYPE=Test

cmake --build build

xmake

Support Linux Only By Now

  • 构建示例
xmake build -y demo
  • 构建动态库
xmake build -y qmapi
  • 构建测试
xmake build -y test

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages