spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Add NPM Package 'spotify-graphql' to the librairies page ? #364

Closed charlypoly closed 7 years ago

charlypoly commented 8 years ago

Hi Spotify team,

I just wrote a graphQL client for the Spotify Web API in Node.js

It allow the following request type :

import SpotifyGraphQLClient from '../src/spotify-graphql';
// config is an object like :
//   {
//     "clientId" : "",
//     "clientSecret" : "",
//     "redirectUri" : "",
//     "accessToken" : ""
//   }
import config from './config';

SpotifyGraphQLClient.create(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"
//         }
//       ]
//     }
//   }
// }

Is there any requirements to have the library on the following page ? ⬇️ https://developer.spotify.com/web-api/code-examples/#wrappers

Here is the repo URL : https://github.com/thefrenchhouse/spotify-graphql

Cheers,

hughrawlinson commented 8 years ago

Hey @wittydeveloper! Awesome work on this library. It looks great. To get on that page, we usually do a code review and look for a project using the package to see how it works in a practical setting. I'll plan to review it soon :) Thanks!

charlypoly commented 8 years ago

Hi @hughrawlinson,

I'm currently working on a music-based project that will use this library (http://github.com/thefrenchhouse/expander/)

I'll keep you updated when i'll have refactored the “expander" project to use this library so you can see a usage case ;)

Thanks !

charlypoly commented 7 years ago

Hi @hughrawlinson ,

I've done a repo with examples of using the library ! https://github.com/thefrenchhouse/spotify-graphql-examples

I would love to have a feedback :)

hughrawlinson commented 7 years ago

Added! Thanks for the awesome work 😄

charlypoly commented 7 years ago

Thanks a lot @hughrawlinson ! 😸