{"id":13755306,"url":"https://github.com/xingbofeng/wx-audio","last_synced_at":"2025-04-19T10:58:11.681Z","repository":{"id":109157501,"uuid":"79542448","full_name":"xingbofeng/wx-audio","owner":"xingbofeng","description":":musical_note: A music-player built with weixin platform.","archived":false,"fork":false,"pushed_at":"2017-05-24T16:51:32.000Z","size":4200,"stargazers_count":163,"open_issues_count":1,"forks_count":67,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-16T09:33:58.356Z","etag":null,"topics":["javascript","wxapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xingbofeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-20T08:50:21.000Z","updated_at":"2024-09-25T07:16:08.000Z","dependencies_parsed_at":"2023-05-22T07:30:46.851Z","dependency_job_id":null,"html_url":"https://github.com/xingbofeng/wx-audio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingbofeng%2Fwx-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingbofeng%2Fwx-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingbofeng%2Fwx-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingbofeng%2Fwx-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xingbofeng","download_url":"https://codeload.github.com/xingbofeng/wx-audio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150451,"owners_count":20731419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","wxapp"],"created_at":"2024-08-03T10:00:51.634Z","updated_at":"2025-03-29T07:17:18.270Z","avatar_url":"https://github.com/xingbofeng.png","language":"JavaScript","funding_links":[],"categories":["Demo"],"sub_categories":[],"readme":"# wx-audio\n\n[![Build Status](https://travis-ci.org/xingbofeng/wx-audio.svg?branch=master)](https://travis-ci.org/xingbofeng/wx-audio)\n\nIt‘s a Music-Player built with weixin-app.\n\n[中文文档](./README_ZH.md)\n\n## Screenshots\n\n![picture](picture.gif)\n\n## Environment\n`Node.js` 6.0+\n\nWarning: Because I use some grammar of es6, you should update the version of your `Node.js`, this project is only supported `Node.js 6.0+`.\n\n## Directory\n- `pages/`: Pages of this application.\n- `server/`: The Back-End of this application，I had deployed it to my own Cloud Server(`https://encounter.studio:3000`, http method is `POST`，param is `musicname`), you can use it freely.\n- `test/`: Unit test code.\n\n## Quickly Start\n* Download The tool of Weixin development.\n[Click here to download](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html)\n* Clone this project\n```\ngit clone https://github.com/xingbofeng/wx-audio.git\n```\n* Start the server on your local environment\n\nWarning: I had deployed it to my own Cloud Server(`https://encounter.studio:3000`, http method is `POST`，param is `musicname`).If you want to run the server in your local environment, please modify `wx.request` of `pages/index/index.js` to `http://localhost:3000`, then `yarn start`.\n\n\n```\nyarn install\nyarn start\n```\n* Unit test\nThe code of test at `test/`, under the environment of `mocha`:\n\n```\nyarn install -g mocha\nyarn test\n```\n\n* Open The tool of Weixin development.\n* Run it in your tool.\n\n## To Do List\n- [x] Add `Node.js`\n- [x] Add Unit Test\n- [x] The List of music\n- [ ] Search User / Singer / Playlist\n- [ ] Control the speed of music playing\n\n## API documents\n\n### URL\n**GET http://music.163.com/api/search/get/**\n\n### params\n```\ns: The keyword of Searching.\nlimit: The mounts of you want to get.\nsub: Please set it `false`.\ntype: Types, see the list as follows.\n\n1 Music\n10 Album\n100 Singer\n1000 Playlist\n1002 User\n```\n### Example\n\n```\nhttp://s.music.163.com/search/get/?type=1\u0026limit=5\u0026s=%E5%91%8A%E7%99%BD%E6%B0%94%E7%90%83\n```\nThe result is as follows:\n```json\n{\n  \"result\": {\n    \"songCount\": 2275,\n    \"songs\": [\n      {\n        \"id\": 440241144,\n        \"name\": \"告白气球\",\n        \"artists\": [\n          {\n            \"id\": 1081635,\n            \"name\": \"周二珂\",\n            \"picUrl\": null\n          }\n        ],\n        \"album\": {\n          \"id\": 34986028,\n          \"name\": \"告白气球\",\n          \"artist\": {\n            \"id\": 0,\n            \"name\": \"\",\n            \"picUrl\": null\n          },\n          \"picUrl\": \"http://p1.music.126.net/m3_elKryq_x62UNHJ2NgHg==/109951162807555886.jpg\"\n        },\n        \"audio\": \"http://m2.music.126.net/GvIMZ5ZW0l04xFMVYtTy8g==/18502581673300022.mp3\",\n        \"djProgramId\": 0,\n        \"page\": \"http://music.163.com/m/song/440241144\"\n      },\n      {\n        \"id\": 434070713,\n        \"name\": \"告白气球 \",\n        \"artists\": [\n          {\n            \"id\": 1073042,\n            \"name\": \"王进\",\n            \"picUrl\": null\n          }\n        ],\n        \"album\": {\n          \"id\": 34801227,\n          \"name\": \"告白气球\",\n          \"artist\": {\n            \"id\": 0,\n            \"name\": \"\",\n            \"picUrl\": null\n          },\n          \"picUrl\": \"http://p1.music.126.net/cIim8rAhdKV1Up7e9zSFoA==/17647161626137638.jpg\"\n        },\n        \"audio\": \"http://m2.music.126.net/zp5J-qWfkwmBd2pq3pHzCw==/18605935765863165.mp3\",\n        \"djProgramId\": 0,\n        \"page\": \"http://music.163.com/m/song/434070713\"\n      },\n      {\n        \"id\": 421137034,\n        \"name\": \"告白气球\",\n        \"artists\": [\n          {\n            \"id\": 1158065,\n            \"name\": \"宇西\",\n            \"picUrl\": null\n          }\n        ],\n        \"album\": {\n          \"id\": 34778501,\n          \"name\": \"告白气球（Cover 周杰伦）\",\n          \"artist\": {\n            \"id\": 0,\n            \"name\": \"\",\n            \"picUrl\": null\n          },\n          \"picUrl\": \"http://p1.music.126.net/tlp3VWVQVe0Je1r-oHn91g==/17666952835430891.jpg\"\n        },\n        \"audio\": \"http://m2.music.126.net/8egvCxWVy4vzk2EJG_dGqg==/3265549609864401.mp3\",\n        \"djProgramId\": 0,\n        \"page\": \"http://music.163.com/m/song/421137034\"\n      },\n      {\n        \"id\": 429461789,\n        \"name\": \"告白气球\",\n        \"artists\": [\n          {\n            \"id\": 975714,\n            \"name\": \"叶洛洛\",\n            \"picUrl\": null\n          },\n          {\n            \"id\": 12126098,\n            \"name\": \"Vk\",\n            \"picUrl\": null\n          }\n        ],\n        \"album\": {\n          \"id\": 34872359,\n          \"name\": \"告白气球\",\n          \"artist\": {\n            \"id\": 0,\n            \"name\": \"\",\n            \"picUrl\": null\n          },\n          \"picUrl\": \"http://p1.music.126.net/PuNMFpLHzvHw2v0-Zh2b8g==/18244196440128259.jpg\"\n        },\n        \"audio\": \"http://m2.music.126.net/t_qlmZ581WF2MwHmvUavxA==/2946691220790691.mp3\",\n        \"djProgramId\": 0,\n        \"page\": \"http://music.163.com/m/song/429461789\"\n      }\n    ]\n  },\n  \"code\": 200\n}\n```\n\n![image](http://oczira72b.bkt.clouddn.com/APIhahaha.png)\n## Change Log\n* 0.0.1 :tada:Deploy;\n* 0.0.2 Add Unit test;\n* 0.1.0 Finish the List of music;\n* 0.1.1 Add English documents, And use `yarn` to build this application;\n\n## LICENSE\n[MIT LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxingbofeng%2Fwx-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxingbofeng%2Fwx-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxingbofeng%2Fwx-audio/lists"}