• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

charlypoly/spotify-graphql: GraphQL schema for Spotify WebAPI — TypeScript / N ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

charlypoly/spotify-graphql

开源软件地址(OpenSource Url):

https://github.com/charlypoly/spotify-graphql

开源编程语言(OpenSource Language):

TypeScript 99.2%

开源软件介绍(OpenSource Introduction):

Spotify GraphQL npm version https://david-dm.org/wittydeveloper/spotify-graphql TypeScript

GraphQL schema for Spotify Web API — TypeScript / Node.js (v6)


Try with the interactive console !

See spotify-graphql-examples for more examples


import SpotifyGraphQLClient from '../src/spotify-graphql';
import config from './config';

SpotifyGraphQLClient(config).query(`
  {
    track(id: "3W2ZcrRsInZbjWylOi6KhZ") {
      name
      artists {
        name
      }
    }
  }
`).then(result => {
  console.log(JSON.stringify(result));
});

// Print : 
// {
//   "data": {
//     "track": {
//       "name": "You & Me - Flume Remix",
//       "artists": [
//         {
//           "name": "Disclosure"
//         },
//         {
//           "name": "Eliza Doolittle"
//         },
//         {
//           "name": "Flume"
//         }
//       ]
//     }
//   }
// }

Queries

Albums

  • Get an Album
  • Get Several Albums
  • Get an Album's Tracks

Artists

  • Get an Artist
  • Get Several Artists
  • Get an Artist's Albums
  • Get an Artist's Top Tracks
  • Get an Artist's Related Artists

Tracks

  • Get a Track
  • Get Several Tracks
  • Get Audio Features for a Track
  • Get Audio Features for Several Tracks
  • Get Audio Analysis for a Track

Search

  • Search for an Item

Playlists

  • Get a List of a User's Playlists
  • Get a List of Current User's Playlists
  • Get a Playlist
  • Get a Playlist's Tracks

Create a Playlist

  • Add Tracks to a Playlist
  • Remove Tracks from a Playlist
  • Reorder or replace a Playlist's Tracks
  • Change a Playlist's Details

User Profiles

  • Get a User's Profile
  • Get Current User's Profile

User Library

  • Get Current User's Saved Tracks
  • Check Current User's Saved Tracks
  • Save Tracks for Current User
  • Remove Tracks for Current User
  • Get Current User's Saved Albums
  • Check Current User's Saved Albums
  • Save Albums for Current User
  • Remove Albums for Current User

Personalization

  • Get User's Top Artists and Tracks

Browse

  • Get a List of New Releases
  • Get a List of Featured Playlists
  • Get a List of Browse Categories
  • Get a Single Browse Category
  • Get a Category's playlists
  • Get Recommendations Based on Seeds
  • Get Available Genre Seeds

Follow

  • Get Followed Artists
  • Check if Current User Follows Artists or Users
  • Follow Artists or Users
  • Unfollow Artists or Users
  • Check if Users Follow a Playlist
  • Follow a Playlist
  • Unfollow a Playlist

Player

  • Get the Current User's Recently Played Tracks
  • Get Information About The User's Current Playback
  • Transfer a User's Playback
  • Get a User's Available Devices
  • Get the User's Currently Playing Track
  • Start/Resume a User's Playback
  • Pause a User's Playback
  • Skip User's Playback To Next Track
  • Skip User's Playback To Previous Track
  • Seek To Position In Currently Playing Track
  • Set Repeat Mode On User's Playback
  • Set Volume For User's Playback
  • Toggle Shuffle For User's Playback



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap