1
1
# Kotlin Spotify Web API
2
+ A [ Kotlin] ( https://kotlinlang.org/ ) implementation of the [ Spotify Web API] ( https://developer.spotify.com/web-api/ ) ,
3
+ supporting Kotlin/JS, Kotlin/Android, Kotlin/JVM, and Kotlin/Native
4
+ (macOS, Windows, Linux).
5
+
2
6
[ ![ JCenter] ( https://maven-badges.herokuapp.com/maven-central/com.adamratzman/spotify-api-kotlin/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.adamratzman/spotify-api-kotlin )
3
- [ ![ Build Status] ( http://144.217.240.243:8111/app/rest/builds/aggregated/strob:(buildType:(project:(id:SpotifyWebApiKotlin)))/statusIcon.svg )] ( http://144.217.240.243:8111/project.html?projectId=SpotifyWebApiKotlin )
4
- [ ![ ] ( https://img.shields.io/badge/Documentation-latest-orange.svg )] ( https://adamint.github.io/spotify-web-api-kotlin/spotify-web-api-kotlin/ )
7
+ [ ![ ] ( https://img.shields.io/badge/Documentation-latest-orange.svg )] ( https://adamint.github.io/spotify-web-api-kotlin-docs/spotify-web-api-kotlin/ )
5
8
![ ] ( https://img.shields.io/badge/License-MIT-blue.svg )
6
9
7
- This is the [ Kotlin] ( https://kotlinlang.org/ ) implementation of the [ Spotify Web API] ( https://developer.spotify.com/web-api/ ) . JS/Browser and Node, Android, and JVM targets are currently supported, with Kotlin/Native (Windows, macOS, Linux) support coming soon in the next minor version, 3.5.
8
10
9
- You can ask questions, get guidance, or get help contributing by joining our [ Discord server] ( https://discord.gg/G6vqP3S ) .
11
+ ![ Android Tests] ( https://img.shields.io/teamcity/build/s/SpotifyWebApiKotlin_AndroidTests?label=Kotlin%2FAndroid%20Tests&server=https%3A%2F%2Fadam.beta.teamcity.com )
12
+ ![ JS tests Status] ( https://img.shields.io/teamcity/build/s/SpotifyWebApiKotlin_JsTests?label=Kotlin%2FJS%20Tests&server=https%3A%2F%2Fadam.beta.teamcity.com )
13
+ ![ JVM tests] ( https://img.shields.io/teamcity/build/s/SpotifyWebApiKotlin_JvmTests?label=Kotlin%2FJVM%20Tests&server=https%3A%2F%2Fadam.beta.teamcity.com )
14
+ ![ Linux Tests] ( https://img.shields.io/teamcity/build/s/SpotifyWebApiKotlin_LinuxTests?label=Kotlin%2FLinux%20Tests&server=https%3A%2F%2Fadam.beta.teamcity.com )
15
+ ![ macOS Tests] ( https://img.shields.io/teamcity/build/s/SpotifyWebApiKotlin_RunTestsMac?label=Kotlin%2FmacOS%20Tests&server=https%3A%2F%2Fadam.beta.teamcity.com )
10
16
11
17
## Table of Contents
12
18
* [ Library installing] ( #library-installing )
13
- + [ JVM, Android, JS] ( #jvm-android-js )
19
+ + [ JVM, Android, JS, Native ] ( #jvm-android-js )
14
20
+ [ Android information] ( #android )
15
21
* [ Documentation] ( #documentation )
16
22
* [ Need help, have a question, or want to contribute?] ( #have-a-question )
@@ -26,20 +32,23 @@ You can ask questions, get guidance, or get help contributing by joining our [Di
26
32
* [ Tips] ( #tips )
27
33
+ [ Building the API] ( #building-the-api )
28
34
* [ Notes] ( #notes )
29
- + [ The benefits of LinkedResults, PagingObjects, and Cursor-based Paging Objects] ( #the-benefits-of-linkedresults-pagingobjects-and-cursor-based-paging-objects )
35
+ + [ LinkedResults, PagingObjects, and Cursor-based Paging Objects] ( #the-benefits-of-linkedresults-pagingobjects-and-cursor-based-paging-objects )
30
36
+ [ Generic Requests] ( #generic-request )
31
37
+ [ Track Relinking] ( #track-relinking )
32
38
* [ Contributing] ( #contributing )
33
39
34
40
## Library installing
41
+ Current version:
42
+
43
+ [ ![ JCenter] ( https://maven-badges.herokuapp.com/maven-central/com.adamratzman/spotify-api-kotlin/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.adamratzman/spotify-api-kotlin )
35
44
36
- ### JVM, Android, JS
45
+ ### JVM, Android, JS, Native (macOS, Windows, Linux)
37
46
```
38
47
repositories {
39
48
jcenter()
40
49
}
41
50
42
- implementation("com.adamratzman:spotify-api-kotlin-core:3.4.03 ")
51
+ implementation("com.adamratzman:spotify-api-kotlin-core:VERSION ")
43
52
```
44
53
45
54
### Android
@@ -74,7 +83,7 @@ The `spotify-web-api-kotlin` JavaDocs are hosted [here](https://adamint.github.i
74
83
## Have a question?
75
84
If you have a question, you can:
76
85
77
- 1 . Create an [ issue] ( https://github.com/adamint/spotify-web-api-kotlin/issues ) or a discussion.
86
+ 1 . Create an [ issue] ( https://github.com/adamint/spotify-web-api-kotlin/issues )
78
87
2 . Join our [ Discord server] ( https://discord.gg/G6vqP3S )
79
88
3 . Contact me using ** Adam#9261** on [ Discord] ( https://discordapp.com )
80
89
@@ -140,7 +149,7 @@ The `SpotifyClientApi` is a superset of `SpotifyApi`; thus, nothing changes if y
140
149
access public data.
141
150
This library does not provide a method to retrieve the code from your callback url; instead,
142
151
you must implement that with a web server.
143
- Automatic refresh is available * only* when building with an authorization code or a
152
+ Automatic Token refresh is available * only* when building with an authorization code or a
144
153
` Token ` object. Otherwise, it will expire ` Token.expiresIn ` seconds after creation.
145
154
146
155
Make sure your application has requested the proper [ Scopes] ( https://developer.spotify.com/web-api/using-spotifyScopes/ ) in order to
@@ -373,7 +382,7 @@ runBlocking {
373
382
```
374
383
375
384
## Notes
376
- ### The benefits of LinkedResults, PagingObjects, and Cursor-based Paging Objects
385
+ ### LinkedResults, PagingObjects, and Cursor-based Paging Objects
377
386
Spotify provides these three object models in order to simplify our lives as developers. So let's see what we
378
387
can do with them!
379
388
0 commit comments