@@ -452,7 +452,22 @@ declare namespace SpotifyWebApi {
452
452
* See [Get a List of a User's Playlists](https://developer.spotify.com/web-api/get-list-users-playlists/) on
453
453
* the Spotify Developer site for more information about the endpoint.
454
454
*
455
- * @param {string } userId An optional id of the user. If you know the Spotify URI it is easy
455
+ * @param {Object } options A JSON object with options that can be passed
456
+ * @param {function(Object,Object) } callback An optional callback that receives 2 parameters. The first
457
+ * one is the error object (null if no error), and the second is the value if the request succeeded.
458
+ * @return {Object } Null if a callback is provided, a `Promise` object otherwise
459
+ */
460
+ getUserPlaylists (
461
+ options ?: Object ,
462
+ callback ?: ResultsCallback < SpotifyApi . ListOfUsersPlaylistsResponse >
463
+ ) : Promise < SpotifyApi . ListOfUsersPlaylistsResponse > ;
464
+
465
+ /**
466
+ * Fetches a list of the current user's playlists.
467
+ * See [Get a List of a User's Playlists](https://developer.spotify.com/web-api/get-list-users-playlists/) on
468
+ * the Spotify Developer site for more information about the endpoint.
469
+ *
470
+ * @param {string } userId An id of the user. If you know the Spotify URI it is easy
456
471
* to find the id (e.g. spotify:user:<here_is_the_id>). If not provided, the id of the user that granted
457
472
* the permissions will be used.
458
473
* @param {Object } options A JSON object with options that can be passed
@@ -461,7 +476,7 @@ declare namespace SpotifyWebApi {
461
476
* @return {Object } Null if a callback is provided, a `Promise` object otherwise
462
477
*/
463
478
getUserPlaylists (
464
- userId ? : string ,
479
+ userId : string ,
465
480
options ?: Object ,
466
481
callback ?: ResultsCallback < SpotifyApi . ListOfUsersPlaylistsResponse >
467
482
) : Promise < SpotifyApi . ListOfUsersPlaylistsResponse > ;
0 commit comments