@@ -209,8 +209,8 @@ public class ClientFollowingApi(api: GenericSpotifyApi) : FollowingApi(api) {
209
209
* with full [Artist] objects
210
210
*/
211
211
public suspend fun getFollowedArtists (
212
- limit : Int? ,
213
- after : String?
212
+ limit : Int? = api.spotifyApiOptions.defaultLimit ,
213
+ after : String? = null
214
214
): CursorBasedPagingObject <Artist > = get(
215
215
endpointBuilder(" /me/following" ).with (" type" , " artist" ).with (" limit" , limit).with (
216
216
" after" ,
@@ -232,8 +232,8 @@ public class ClientFollowingApi(api: GenericSpotifyApi) : FollowingApi(api) {
232
232
* with full [Artist] objects
233
233
*/
234
234
public fun getFollowedArtistsRestAction (
235
- limit : Int? ,
236
- after : String?
235
+ limit : Int? = api.spotifyApiOptions.defaultLimit ,
236
+ after : String? = null
237
237
): SpotifyRestAction <CursorBasedPagingObject <Artist >> = SpotifyRestAction { getFollowedArtists(limit, after) }
238
238
239
239
/* *
@@ -313,7 +313,7 @@ public class ClientFollowingApi(api: GenericSpotifyApi) : FollowingApi(api) {
313
313
*
314
314
* @throws BadRequestException if an invalid id is provided
315
315
*/
316
- public fun followArtistRestAction (artistId : String ) = SpotifyRestAction { followArtist(artistId) }
316
+ public fun followArtistRestAction (artistId : String ): SpotifyRestAction < Unit > = SpotifyRestAction { followArtist(artistId) }
317
317
318
318
/* *
319
319
* Add the current user as a follower of other artists
@@ -369,7 +369,7 @@ public class ClientFollowingApi(api: GenericSpotifyApi) : FollowingApi(api) {
369
369
*
370
370
* @throws BadRequestException if the playlist is not found
371
371
*/
372
- public suspend fun followPlaylist (playlist : String , followPublicly : Boolean ): String = put(
372
+ public suspend fun followPlaylist (playlist : String , followPublicly : Boolean = true ): String = put(
373
373
endpointBuilder(" /playlists/${PlaylistUri (playlist).id} /followers" ).toString(),
374
374
" {\" public\" : $followPublicly }"
375
375
)
0 commit comments