Skip to content

Commit 03a194d

Browse files
committed
Bump version to 1.2.3 and update API URLs for access token and server time
1 parent 43b2ff3 commit 03a194d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'de.labystudio'
7-
version '1.2.2'
7+
version '1.2.3'
88

99
compileJava {
1010
sourceCompatibility = '1.8'

src/main/java/de/labystudio/spotifyapi/open/OpenSpotifyAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public class OpenSpotifyAPI {
3333
private static final Gson GSON = new Gson();
3434

3535
private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/71.0.3578." + (int) (Math.random() * 90);
36+
private static final String URL_API_GEN_ACCESS_TOKEN = "https://open.spotify.com/api/token?reason=%s&productType=web-player&totp=%s&totpVer=5";
3637

37-
private static final String URL_API_GEN_ACCESS_TOKEN = "https://open.spotify.com/get_access_token?reason=%s&productType=web-player&totp=%s&totpVer=5";
3838
private static final String URL_API_TRACKS = "https://api.spotify.com/v1/tracks/%s";
39-
private static final String URL_API_SERVER_TIME = "https://open.spotify.com/server-time";
39+
private static final String URL_API_SERVER_TIME = "https://open.spotify.com/api/server-time";
4040

4141
public static final int[] TOTP_SECRET = {12, 56, 76, 33, 88, 44, 88, 33, 78, 78, 11, 66, 22, 22, 55, 69, 54};
4242

0 commit comments

Comments
 (0)