You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**If you declare any release types not named debug or release, you may see "Could not resolve com.adamratzman:spotify-api-kotlin-android:VERSION". You need to do the following for each release type not named debug or release:**
The `spotify-web-api-kotlin` JavaDocs are hosted at https://adamint.github.io/spotify-web-api-kotlin/spotify-web-api-kotlin/
82
48
83
-
## Samples
84
-
Samples for all APIs are located in the `samples` directory
85
-
86
49
## Have a question?
87
50
If you have a question, you can:
88
51
@@ -94,16 +57,25 @@ If you have a question, you can:
94
57
To decide which api you need (SpotifyAppApi, SpotifyClientApi, SpotifyImplicitGrantApi), please refer to
95
58
https://developer.spotify.com/documentation/general/guides/authorization-guide/. In general:
96
59
- If you don't need client resources, use SpotifyAppApi
97
-
- If you're using the api in a backend application, use SpotifyClientApi
98
-
- If you're using the api in a frontend application, use SpotifyImplicitGrantApi
60
+
- If you're using the api in a backend application, use SpotifyClientApi (with or without PKCE)
61
+
- If you're using the api in Kotlin/JS browser, use SpotifyImplicitGrantApi
62
+
- If you need access to client resources in an Android or other application, use SpotifyClientApi with PKCe
63
+
99
64
100
65
### SpotifyAppApi
101
66
This provides access only to public Spotify endpoints. By default, the SpotifyApi `Token` automatically regenerates when needed. This can be changed
102
67
through the `automaticRefresh` parameter in all builders.
103
68
104
69
There are four exposed builders, depending on the level of control you need over api creation.
105
-
Please see the [spotifyAppApi builder docs](https://adamint.github.io/spotify-web-api-kotlin/docs/spotify-web-api-kotlin/com.adamratzman.spotify/spotify-app-api.html) for a full list of available builders, or the app api [samples](https://github.com/adamint/spotify-web-api-kotlin/tree/master/samples/jvm/src/main/kotlin/appApi).
106
-
70
+
Please see the [spotifyAppApi builder docs](https://adamint.github.io/spotify-web-api-kotlin/docs/spotify-web-api-kotlin/com.adamratzman.spotify/spotify-app-api.html) for a full list of available builders.
71
+
72
+
You will need:
73
+
- Spotify application client id
74
+
- Spotify application client secret
75
+
76
+
Example creation (default settings)
77
+
78
+
107
79
108
80
### SpotifyClientApi
109
81
The `SpotifyClientApi` is a superset of `SpotifyApi`; thus, you have access to all `SpotifyApi` methods in `SpotifyClientApi`.
0 commit comments