Skip to content

Commit e1dfcfe

Browse files
committed
Update links to Spotify documentation
1 parent 075bb92 commit e1dfcfe

File tree

9 files changed

+15
-17
lines changed

9 files changed

+15
-17
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ System.out.println(artist.getName());
3333
```
3434

3535
## Authorization
36-
Spotify's web API supports different [authorization flows](https://developer.spotify.com/documentation/general/guides/authorization-guide). All flows require that your application is registered on the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard). You can find more details on how to register your app [here](https://developer.spotify.com/documentation/general/guides/app-settings/#register-your-app). After successful registration you can use one of the following authorization flows with the `spotify-web-api-java`:
36+
Spotify's web API supports different [authorization flows](https://developer.spotify.com/documentation/web-api/concepts/authorization). All flows require that your application is registered on the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard). You can find more details on how to register your app [here](https://developer.spotify.com/documentation/web-api/concepts/apps). After successful registration you can use one of the following authorization flows with the `spotify-web-api-java`:
3737

38-
### [Authorization code flow](https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow)
38+
### [Authorization code flow](https://developer.spotify.com/documentation/web-api/tutorials/code-flow)
3939
Code example: [AuthorizationCodeExample.java](spotify-web-api-java/src/test/java/examples/AuthorizationCodeExample.java)
40-
### [Authorization code flow with proof key for code exchange (PKCE)](https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow-with-proof-key-for-code-exchange-pkce)
40+
### [Authorization code flow with proof key for code exchange (PKCE)](https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow)
4141
Code example: [AuthorizationCodePKCEExample.java](spotify-web-api-java/src/test/java/examples/AuthorizationCodePKCEExample.java)
42-
### [Implicit grant](https://developer.spotify.com/documentation/general/guides/authorization-guide/#implicit-grant-flow)
42+
### [Implicit grant](https://developer.spotify.com/documentation/web-api/tutorials/implicit-flow)
4343
Code example: [ImplicitGrantExample.java](spotify-web-api-java/src/test/java/examples/ImplicitGrantExample.java)
44-
### [Client credentials flow](https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-flow)
44+
### [Client credentials flow](https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow)
4545
Code example: [ClientCredentialsExample.java](spotify-web-api-java/src/test/java/examples/ClientCredentialsExample.java)
4646

4747
## How to release a new version

spotify-web-api-java-generator/src/main/java/de/sonallux/spotify/generator/java/generators/BaseObjectGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public class BaseObjectGenerator extends ObjectGenerator {
1313
public static final ApiObject BASE_API_OBJECT = ApiObject.builder()
1414
.name(BASE_OBJECT_NAME)
1515
.build()
16-
.addProperty(new ApiObject.Property("id", "String", "The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the object."))
16+
.addProperty(new ApiObject.Property("id", "String", "The [Spotify ID](https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids) for the object."))
1717
.addProperty(new ApiObject.Property("type", "String", "The object type."))
1818
.addProperty(new ApiObject.Property("href", "String", "A link to the Web API endpoint providing full details of the object."))
19-
.addProperty(new ApiObject.Property("uri", "String", "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the object."));
19+
.addProperty(new ApiObject.Property("uri", "String", "The [Spotify URI](https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids) for the object."));
2020
private static final List<String> BASE_OBJECT_PROPERTY_NAMES = List.of("id", "type", "href", "uri");
2121

2222
public BaseObjectGenerator(GenerationContext generationContext) {

spotify-web-api-java-generator/src/main/resources/templates/scope.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package {{package}};
22

33
/**
4-
* <a href="https://developer.spotify.com/documentation/general/guides/scopes">Authorization Scopes</a>
4+
* <a href="https://developer.spotify.com/documentation/web-api/concepts/scopes">Authorization Scopes</a>
55
*/
66
public enum {{className}} {
77
{{#scopes}}

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/authorization/Scope.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package de.sonallux.spotify.api.authorization;
22

33
/**
4-
* <a href="https://developer.spotify.com/documentation/general/guides/scopes">Authorization Scopes</a>
4+
* <a href="https://developer.spotify.com/documentation/web-api/concepts/scopes">Authorization Scopes</a>
55
*/
66
public enum Scope {
77
/**

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/BaseObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public abstract class BaseObject {
2323
*/
2424
public String href;
2525
/**
26-
* <p>The <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify ID</a> for the object.</p>
26+
* <p>The <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify ID</a> for the object.</p>
2727
*/
2828
public String id;
2929
/**
3030
* <p>The object type.</p>
3131
*/
3232
public String type;
3333
/**
34-
* <p>The <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify URI</a> for the object.</p>
34+
* <p>The <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify URI</a> for the object.</p>
3535
*/
3636
public String uri;
3737
}

spotify-web-api-java/src/main/java/de/sonallux/spotify/api/authorization/authorization_code/AuthorizationCodeFlow.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
/**
1313
* Implements the
14-
* <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow">
15-
* Authorization Code Flow</a>
14+
* <a href="https://developer.spotify.com/documentation/web-api/tutorials/code-flow">Authorization Code Flow</a>
1615
*/
1716
public class AuthorizationCodeFlow extends AbstractAuthorizationCodeFlow {
1817
private final String clientSecret;

spotify-web-api-java/src/main/java/de/sonallux/spotify/api/authorization/authorization_code/AuthorizationCodePKCEFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
* Implements the
12-
* <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow-with-proof-key-for-code-exchange-pkce">
12+
* <a href="https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow">
1313
* Authorization Code Flow with Proof Key for Code Exchange (PKCE)</a>
1414
*/
1515
public class AuthorizationCodePKCEFlow extends AbstractAuthorizationCodeFlow {

spotify-web-api-java/src/main/java/de/sonallux/spotify/api/authorization/client_credentials/ClientCredentialsFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/**
1414
* Implements the
15-
* <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-flow">
15+
* <a href="https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow">
1616
* Client Credentials Flow</a>
1717
*/
1818
public class ClientCredentialsFlow extends TokenStoreApiAuthorizationProvider {

spotify-web-api-java/src/main/java/de/sonallux/spotify/api/authorization/implicit_grant/ImplicitGrantFlow.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
/**
88
* Implements the
9-
* <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#implicit-grant-flow">
10-
* Implicit Grant Flow</a>
9+
* <a href="https://developer.spotify.com/documentation/web-api/tutorials/implicit-flow">Implicit Grant Flow</a>
1110
*/
1211
public class ImplicitGrantFlow extends TokenStoreApiAuthorizationProvider {
1312
private final String clientId;

0 commit comments

Comments
 (0)