Skip to content

Commit f67a4e6

Browse files
committed
replace references to SpotifyAPI and SpotifyClientAPI with SpotifyApi and SpotifyClientApi; update readme
1 parent 55781ba commit f67a4e6

File tree

13 files changed

+170
-144
lines changed

13 files changed

+170
-144
lines changed

README.md

Lines changed: 137 additions & 111 deletions
Large diffs are not rendered by default.

docs/docs/spotify-web-api-kotlin/alltypes/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ <h5><a href="../com.adamratzman.spotify/-spotify-api/index.html">com.adamratzman
494494
</tr>
495495
<tr>
496496
(common, js, jvm)
497-
<h5><a href="../com.adamratzman.spotify/-spotify-a-p-i.html">com.adamratzman.spotify.SpotifyAPI</a></h5>
497+
<h5><a href="../com.adamratzman.spotify/-spotify-a-p-i.html">com.adamratzman.spotify.SpotifyApi</a></h5>
498498
</tr>
499499
<tr>
500500
(common, js, jvm)
@@ -541,7 +541,7 @@ <h5><a href="../com.adamratzman.spotify/-spotify-client-api/index.html">com.adam
541541
</tr>
542542
<tr>
543543
(common, js, jvm)
544-
<h5><a href="../com.adamratzman.spotify/-spotify-client-a-p-i.html">com.adamratzman.spotify.SpotifyClientAPI</a></h5>
544+
<h5><a href="../com.adamratzman.spotify/-spotify-client-a-p-i.html">com.adamratzman.spotify.SpotifyClientApi</a></h5>
545545
</tr>
546546
<tr>
547547
(common, js, jvm)

docs/docs/spotify-web-api-kotlin/com.adamratzman.spotify/-spotify-a-p-i.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<HTML>
22
<HEAD>
33
<meta charset="UTF-8">
4-
<title>com.adamratzman.spotify.SpotifyAPI - spotify-web-api-kotlin</title>
4+
<title>com.adamratzman.spotify.SpotifyApi - spotify-web-api-kotlin</title>
55
<link rel="stylesheet" href="../../style.css">
66
</HEAD>
77
<BODY>
8-
<a href="../index.html">spotify-web-api-kotlin</a>&nbsp;/&nbsp;<a href="index.html">com.adamratzman.spotify</a>&nbsp;/&nbsp;<a href="./-spotify-a-p-i.html">SpotifyAPI</a><br/>
8+
<a href="../index.html">spotify-web-api-kotlin</a>&nbsp;/&nbsp;<a href="index.html">com.adamratzman.spotify</a>&nbsp;/&nbsp;<a href="./-spotify-a-p-i.html">SpotifyApi</a><br/>
99
<br/>
10-
<h1>SpotifyAPI</h1>
11-
<a name="com.adamratzman.spotify.SpotifyAPI"></a>
12-
(common, js, jvm) <code><span class="keyword">typealias </span><s><span class="identifier">SpotifyAPI</span></s><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">, </span><span class="identifier">B</span><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-api/index.html"><span class="identifier">SpotifyApi</span></a><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">B</span><span class="symbol">&gt;</span></code><br/>
10+
<h1>SpotifyApi</h1>
11+
<a name="com.adamratzman.spotify.SpotifyApi"></a>
12+
(common, js, jvm) <code><span class="keyword">typealias </span><s><span class="identifier">SpotifyApi</span></s><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">, </span><span class="identifier">B</span><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-api/index.html"><span class="identifier">SpotifyApi</span></a><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">B</span><span class="symbol">&gt;</span></code><br/>
1313
<strong>Deprecated:</strong> API name has been updated for kotlin convention consistency<br/>
1414
<br/>
1515
</BODY>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<HTML>
22
<HEAD>
33
<meta charset="UTF-8">
4-
<title>com.adamratzman.spotify.SpotifyClientAPI - spotify-web-api-kotlin</title>
4+
<title>com.adamratzman.spotify.SpotifyClientApi - spotify-web-api-kotlin</title>
55
<link rel="stylesheet" href="../../style.css">
66
</HEAD>
77
<BODY>
8-
<a href="../index.html">spotify-web-api-kotlin</a>&nbsp;/&nbsp;<a href="index.html">com.adamratzman.spotify</a>&nbsp;/&nbsp;<a href="./-spotify-client-a-p-i.html">SpotifyClientAPI</a><br/>
8+
<a href="../index.html">spotify-web-api-kotlin</a>&nbsp;/&nbsp;<a href="index.html">com.adamratzman.spotify</a>&nbsp;/&nbsp;<a href="./-spotify-client-a-p-i.html">SpotifyClientApi</a><br/>
99
<br/>
10-
<h1>SpotifyClientAPI</h1>
11-
<a name="com.adamratzman.spotify.SpotifyClientAPI"></a>
12-
(common, js, jvm) <code><span class="keyword">typealias </span><span class="identifier">SpotifyClientAPI</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-client-api/index.html"><span class="identifier">SpotifyClientApi</span></a></code>
10+
<h1>SpotifyClientApi</h1>
11+
<a name="com.adamratzman.spotify.SpotifyClientApi"></a>
12+
(common, js, jvm) <code><span class="keyword">typealias </span><span class="identifier">SpotifyClientApi</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-client-api/index.html"><span class="identifier">SpotifyClientApi</span></a></code>
1313
</BODY>
1414
</HTML>

docs/docs/spotify-web-api-kotlin/com.adamratzman.spotify/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ <h4><a href="-spotify-api/index.html">SpotifyApi</a></h4>
5757
<tr>
5858
<td>
5959
(common, js, jvm)
60-
<h4><a href="-spotify-a-p-i.html">SpotifyAPI</a></h4>
60+
<h4><a href="-spotify-a-p-i.html">SpotifyApi</a></h4>
6161
</td>
6262
<td>
63-
<code><span class="keyword">typealias </span><s><span class="identifier">SpotifyAPI</span></s><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">, </span><span class="identifier">B</span><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-api/index.html"><span class="identifier">SpotifyApi</span></a><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">B</span><span class="symbol">&gt;</span></code></td>
63+
<code><span class="keyword">typealias </span><s><span class="identifier">SpotifyApi</span></s><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">, </span><span class="identifier">B</span><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-api/index.html"><span class="identifier">SpotifyApi</span></a><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">B</span><span class="symbol">&gt;</span></code></td>
6464
</tr>
6565
<tr>
6666
<td>
@@ -127,10 +127,10 @@ <h4><a href="-spotify-client-api/index.html">SpotifyClientApi</a></h4>
127127
<tr>
128128
<td>
129129
(common, js, jvm)
130-
<h4><a href="-spotify-client-a-p-i.html">SpotifyClientAPI</a></h4>
130+
<h4><a href="-spotify-client-a-p-i.html">SpotifyClientApi</a></h4>
131131
</td>
132132
<td>
133-
<code><span class="keyword">typealias </span><span class="identifier">SpotifyClientAPI</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-client-api/index.html"><span class="identifier">SpotifyClientApi</span></a></code></td>
133+
<code><span class="keyword">typealias </span><span class="identifier">SpotifyClientApi</span>&nbsp;<span class="symbol">=</span>&nbsp;<a href="-spotify-client-api/index.html"><span class="identifier">SpotifyClientApi</span></a></code></td>
134134
</tr>
135135
<tr>
136136
<td>

docs/docs/spotify-web-api-kotlin/index-outline.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@
19171917
</BODY>
19181918
</HTML>
19191919
</ul>
1920-
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-a-p-i.html"><span class="identifier">SpotifyAPI</span></a></a><br/>
1920+
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-a-p-i.html"><span class="identifier">SpotifyApi</span></a></a><br/>
19211921
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-api-builder/index.html"><span class="identifier">SpotifyApiBuilder</span></a></a><br/>
19221922
<ul>
19231923
<HTML>
@@ -2101,7 +2101,7 @@
21012101
</BODY>
21022102
</HTML>
21032103
</ul>
2104-
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-client-a-p-i.html"><span class="identifier">SpotifyClientAPI</span></a></a><br/>
2104+
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-client-a-p-i.html"><span class="identifier">SpotifyClientApi</span></a></a><br/>
21052105
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-client-api-builder/index.html"><span class="identifier">SpotifyClientApiBuilder</span></a></a><br/>
21062106
<ul>
21072107
<HTML>
@@ -2970,7 +2970,7 @@
29702970
</BODY>
29712971
</HTML>
29722972
</ul>
2973-
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-a-p-i.html"><span class="identifier">SpotifyAPI</span></a></a><br/>
2973+
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-a-p-i.html"><span class="identifier">SpotifyApi</span></a></a><br/>
29742974
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-api-builder/index.html"><span class="identifier">SpotifyApiBuilder</span></a></a><br/>
29752975
<ul>
29762976
<HTML>
@@ -3126,7 +3126,7 @@
31263126
</BODY>
31273127
</HTML>
31283128
</ul>
3129-
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-client-a-p-i.html"><span class="identifier">SpotifyClientAPI</span></a></a><br/>
3129+
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-client-a-p-i.html"><span class="identifier">SpotifyClientApi</span></a></a><br/>
31303130
<a href="docs/docs/spotify-web-api-kotlin/index"><a href="com.adamratzman.spotify/-spotify-client-api-builder/index.html"><span class="identifier">SpotifyClientApiBuilder</span></a></a><br/>
31313131
<ul>
31323132
<HTML>

src/commonMain/kotlin/com.adamratzman.spotify/Builder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class SpotifyClientApiBuilder(
390390
)
391391
else -> throw IllegalArgumentException(
392392
"At least one of: authorizationCode, tokenString, or token must be provided " +
393-
"to build a SpotifyClientAPI object"
393+
"to build a SpotifyClientApi object"
394394
)
395395
}
396396
}

src/commonTest/kotlin/com.adamratzman/spotify/private/ClientFollowingAPITest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
22
package com.adamratzman.spotify.private
33

4-
import com.adamratzman.spotify.SpotifyClientAPI
4+
import com.adamratzman.spotify.SpotifyClientApi
55
import com.adamratzman.spotify.SpotifyException
66
import com.adamratzman.spotify.api
77
import kotlin.test.assertEquals
@@ -14,7 +14,7 @@ import org.spekframework.spek2.style.specification.describe
1414

1515
class ClientFollowingAPITest : Spek({
1616
describe("Client following tests") {
17-
if (api !is SpotifyClientAPI) return@describe
17+
if (api !is SpotifyClientApi) return@describe
1818
it("following/unfollowing artists") {
1919
val testArtistId = "7eCmccnRwPmRnWPw61x6jM"
2020

src/commonTest/kotlin/com.adamratzman/spotify/private/ClientLibraryAPITest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
22
package com.adamratzman.spotify.private
33

4-
import com.adamratzman.spotify.SpotifyClientAPI
4+
import com.adamratzman.spotify.SpotifyClientApi
55
import com.adamratzman.spotify.SpotifyException
66
import com.adamratzman.spotify.api
77
import com.adamratzman.spotify.endpoints.client.LibraryType
@@ -13,7 +13,7 @@ import org.spekframework.spek2.style.specification.describe
1313

1414
class ClientLibraryAPITest : Spek({
1515
describe("Client Library tests") {
16-
if (api !is SpotifyClientAPI) return@describe
16+
if (api !is SpotifyClientApi) return@describe
1717

1818
it("library track tests") {
1919
val testTrack = "3yi3SEVFj0mSiYVu8xT9sF"

src/commonTest/kotlin/com.adamratzman/spotify/private/ClientPersonalizationAPITest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
22
package com.adamratzman.spotify.private
33

4-
import com.adamratzman.spotify.SpotifyClientAPI
4+
import com.adamratzman.spotify.SpotifyClientApi
55
import com.adamratzman.spotify.api
66
import com.adamratzman.spotify.endpoints.client.ClientPersonalizationApi
77
import kotlin.test.assertTrue
@@ -10,7 +10,7 @@ import org.spekframework.spek2.style.specification.describe
1010

1111
class ClientPersonalizationAPITest : Spek({
1212
describe("personalization endpoints") {
13-
if (api !is SpotifyClientAPI) return@describe
13+
if (api !is SpotifyClientApi) return@describe
1414
it("top artists") {
1515
assertTrue(api.personalization.getTopArtists(5, timeRange = ClientPersonalizationApi.TimeRange.MEDIUM_TERM)
1616
.complete().items.isNotEmpty())

0 commit comments

Comments
 (0)