File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/main/kotlin/com/adamratzman/spotify Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,20 @@ class SpotifyApiBuilderDsl {
289
289
utilities = SpotifyUtilitiesBuilder ().apply (block).build()
290
290
}
291
291
292
+ /* *
293
+ * Allows you to override default values for caching, token refresh, and logging
294
+ */
295
+ fun config (block : SpotifyUtilitiesBuilder .() -> Unit ) {
296
+ utilities = SpotifyUtilitiesBuilder ().apply (block).build()
297
+ }
298
+
299
+ /* *
300
+ * Allows you to override default values for caching, token refresh, and logging
301
+ */
302
+ fun options (block : SpotifyUtilitiesBuilder .() -> Unit ) {
303
+ utilities = SpotifyUtilitiesBuilder ().apply (block).build()
304
+ }
305
+
292
306
/* *
293
307
* Create a Spotify authorization URL from which client access can be obtained
294
308
*
@@ -413,7 +427,7 @@ class SpotifyApiBuilderDsl {
413
427
authorizationCode != null -> try {
414
428
clientId ? : throw IllegalArgumentException ()
415
429
clientSecret ? : throw IllegalArgumentException ()
416
- redirectUri ? : IllegalArgumentException ()
430
+ redirectUri ? : throw IllegalArgumentException ()
417
431
418
432
val response = executeTokenRequest(HttpConnection (
419
433
url = " https://accounts.spotify.com/api/token" ,
You can’t perform that action at this time.
0 commit comments