Get 50 playlists at once instead of 20.
This commit is contained in:
parent
05c155d1f7
commit
a4197e474d
1 changed files with 3 additions and 1 deletions
4
app.js
4
app.js
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue