Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1.   getSavedPlaylists: function() {
  2.     var spotifyApi = new SpotifyWebApi();
  3.     var response = spotifyApi.getUserPlaylists(Meteor.user().services.spotify.id, {});
  4.     if (checkTokenRefreshed(response, spotifyApi)) {
  5.       response = spotifyApi.getUserPlaylists(Meteor.user().services.spotify.id, {});
  6.     }
  7.     return response.data.body.items;
  8.   },
  9.  
  10.   getAltraProprieta: function() {
  11.   var test = getSavedPlaylists();
  12.   return test;
  13.   },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement