xinranxiao / meteor-spotify-web-api

A meteor package for Spotify's web API.
MIT License
34 stars 10 forks source link

getArtistTopTracks #1

Closed benjick closed 9 years ago

benjick commented 9 years ago

here2is never logged into console and I never get any data

  searchArtistTopTracks: function(artistId) {
    console.log("here")
    var spotifyApi = new SpotifyWebApi();
    var response = spotifyApi.getArtistTopTracks(artistId);
    console.log("here2")

    // Need to refresh token
    if (checkTokenRefreshed(response, spotifyApi)) {
      response = spotifyApi.getArtistTopTracks(artistId);
    }

    return response.data.body;
  },

any suggestions?

xinranxiao commented 9 years ago

I'll check it out in a few hours, hold on

benjick commented 9 years ago

So I wasn't passing country code. Sorry

Great plug-ins btw. On 30 Jun 2015 21:46, "Xinran Xiao" notifications@github.com wrote:

I'll check it out in a few hours, hold on

— Reply to this email directly or view it on GitHub https://github.com/xinranxiao/meteor-spotify-web-api/issues/1#issuecomment-117317600 .

xinranxiao commented 9 years ago

Great! Thanks for the support. Let me know if there's any suggestions for improvement, issues, etc.