npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

5sing-sdk

v0.0.9

Published

中国原创音乐基地(5sing)NODE-SDK. It only supports for node environment. [5sing Mobile API Document](https://github.com/i5sing/5sing-mobile-api)

Downloads

71

Readme

5sing-sdk

中国原创音乐基地(5sing)NODE-SDK. It only supports for node environment. 5sing Mobile API Document

Usage

$ npm install 5sing-sdk --save

Example

var SingSdk = require('5sing-sdk');

SingSdk.getAdvertisements({
  advertId: 23
}, function (result, response) {

}, function (err, result, response){

});

// or 
SingSdk.getAdvertisements({
  advertId: 23
}).then(function (result) {

}, function (err) {

});

API

  • params: api query string
  • success: success callback
  • error: error callback
  • return: promise object

getAdvertisements(params, success, error)

获取轮播图列表
params:

  • advertId: 轮播图Id

getDailyRecommendSongs(params, success, error)

获取每日推荐
params:

  • pageIndex
  • pageSize

getSpecialColumn(success, error)

获取专栏列表

getSpecialColumnDetail(params, success, error)

获取专栏详情
params:

  • channelId: 专栏id
  • pageIndex
  • pageSize

getRankOverview(success, error)

获取排行榜概览

getRankUpdateList(success, error)

获取排行榜更新时间列表

getRankDetail(params, success, error)

获取排行榜详情
params:

  • id: list23
  • time: 排行榜更新时间列表中的time
  • pageIndex
  • pageSize

getPopularSongs(params, success, error)

获取最后欢迎歌曲列表
params:

  • limit: 条数
  • pageIndex
  • pageSize
  • time: 排行榜更新时间列表中的time

getSongCollections(params, success, error)

获取歌单列表
params:

  • pageIndex

getSongCollectionsByLabel(params, success, error)

筛选歌单
params:

  • label: 歌单标签
  • pageIndex
  • pageSize

getSongsInSongCollections(params, success, error)

获取歌单中歌曲列表
params:

  • id: 歌单id

getSongCollection(params, success, error)

获取歌单详情
params:

  • id: 歌单id

getSingers(params, success, error)

获取歌手列表
params:

  • pageIndex,
  • pageSize

getLatestSingers(params, success, error)

获取新入驻歌手列表
params:

  • pageIndex
  • pageSize

getUserInfo(params, success, error)

获取用户信息
params:

  • userId: 用户id

getUserSongs(params, success, error)

获取该用户上传歌曲列表
params:

  • userId: 用户id
  • songType: 歌曲类型 原创(yc) 翻唱(fc) 伴奏(bz)
  • pageIndex
  • pageSize

isLogin(params, success, error)

检查登录状态
params:

  • sign: token

getSingerDynamic(params, success, error)

获取关注歌手动态
params:

  • sign: token
  • pageIndex
  • pageSize

checkFollowUser(params, success, error)

检查是否关注该歌手
params:

  • userId: 用户id
  • sign: token

checkSongCollection(params, success, error)

检查是否收藏该歌单
params:

  • id: 歌单id
  • sign: token

addVisited(params, success, error)

添加访问足迹
params:

  • userId: 访问用户id
  • sign: token

getSquareList(params, success, error)

获取广场列表
params:

  • sign: token
  • pageIndex
  • pageSize

getSongAddr(params, success, error)

获取歌曲地址
params:

  • songId: 歌曲id
  • songType: 歌曲类型 原创(yc) 翻唱(fc) 伴奏(bz)

search(params, success, error)

搜索
params:

  • keyword: 关键词
  • type: 类型
  • pageIndex
  • pageSize

login(params, success, error)

登录
params:

  • username
  • password

getMySongCollections(params, success, error)

获取收藏的歌单
params:

  • sign: token
  • pageIndex
  • pageSize

getMySongs(params, success, error)

获取收藏的歌曲 params:

  • userId: 用户id

getSong(params, success, error)

获取歌曲信息
params:

  • songId: 歌曲id
  • songType: 歌曲类型 原创(yc) 翻唱(fc) 伴奏(bz)

getSongSupport(params, success, error)

获取歌曲支持信息
params:

  • songId: 歌曲id
  • songType: 歌曲类型 原创(yc) 翻唱(fc) 伴奏(bz)
  • sign: token

getComments(params, success, error)

获取评论
params:

  • id: 歌曲id或用户id
  • kind: 类型 原创(yc) 翻唱(fc) 伴奏(bz) 用户(guestBook)

getSongFans(params, success, error)

获取歌曲贡献榜
params:

  • songId: 歌曲id
  • songType: 歌曲类型 原创(yc) 翻唱(fc) 伴奏(bz)
  • limit: 条数

getUserCollections(params, success, error)

获取歌手关注列表
params:

  • userId: 用户id
  • pageIndex
  • pageSize

getUserFans(params, success, error)

获取歌手粉丝列表
params:

  • userId: 用户id
  • pageIndex
  • pageSize

getUserQuests(params, success, error)

获取歌手访客列表
params:

  • sign: token
  • userId: 用户id

addToMyCollections(params, success, error)

收藏歌单
params:

  • sign: token
  • id: 歌单id

removeFromMyCollections(params, success, error)

取消收藏歌单
params:

  • sign: token
  • id: 歌单id

syncMySongs(params, success, error)

同步我收藏的歌曲
params:

  • userId: 用户id
  • add: []
  • delete: []

addToMyAttention(params, success, error)

添加歌手到我的关注
params:

  • userId: 用户id
  • sign: token

removeFromMyAttention(params, success, error)

从我的关注中移除歌手
params:

  • userId: 用户id
  • sign: token

like(params, success, error)

点赞
params:

  • id: id
  • type: 类型
  • sign: token
  • like: true/false

getMyRelated(params, success, error)

与我相关
params:

  • sign: token

getPrivateMessage(params, success, error)

获取私信
params:

  • userId: 用户id
  • sign: token
  • pageIndex: 页码
  • pageSize: 每页条数

getTopics(success, error)

获取主题列表

getTips(params, success, error)

获取总览
params:

  • sign: token

Develop

$ npm install 

$ npm run build

$ npm run test

Feedback

If you any questions, use Issues.

Sina Weibo: @赵小小峰

License

MIT Licence.