Get 50 playlists at once instead of 20.

This commit is contained in:
Gabriel Augendre 2016-04-17 12:04:24 +02:00
parent 05c155d1f7
commit a4197e474d

4
app.js
View file

@ -135,7 +135,9 @@ app.get('/get_playlists', function (req, res) {
var access_token = req.query.access_token;
var next = req.query.next;
var authOptions = {
url: next ? next : 'https://api.spotify.com/v1/me/playlists',
url: next ? next : 'https://api.spotify.com/v1/me/playlists?' + querystring.stringify({
limit: 50
}),
headers: {'Authorization': 'Bearer ' + access_token},
json: true
};