GithubHelp home page GithubHelp logo

ryunosuketateoka / spotify-graphql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from charlypoly/spotify-graphql

0.0 0.0 0.0 682 KB

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

License: MIT License

JavaScript 0.82% TypeScript 99.18%

spotify-graphql's 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 ❌

spotify-graphql's People

Contributors

charlypoly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.