File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Use the following guides provided by Spotify to use this library:
13
13
The Client Credentials flow is used in server-to-server authentication. Only endpoints that do not access user information can be accessed.
14
14
``` java
15
15
ClientCredentialsFlow clientCredentialsFlow = new ClientCredentialsFlow ();
16
- String accessToken = clientCredentialsFlow. getAccessToken (
16
+ String accessToken = clientCredentialsFlow. getClientCredentialToken (
17
17
" CLIENT ID" ,
18
18
" CLIENT SECRET" )
19
19
.getAccessToken();
@@ -51,7 +51,7 @@ For the second step the following values need to be provided:
51
51
``` java
52
52
AuthorizationRequestToken authorizationRequestToken = new AuthorizationRequestToken ();
53
53
AuthorizationCodeFlowTokenResponse token = authorizationRequestToken
54
- .getAccessAndRefreshToken (
54
+ .getAuthorizationCodeToken (
55
55
" CLIENT ID" ,
56
56
" CLIENT SECRET" ,
57
57
" AUTHORIZATION CODE" ,
@@ -89,8 +89,8 @@ For the second step the following values need to be provided:
89
89
- Code verifier (the one that was generated at the first step)
90
90
91
91
``` java
92
- AuthorizationPKCERequestToken a = new AuthorizationPKCERequestToken ();
93
- final String accessToken = a . getAccessAndRefreshToken (
92
+ AuthorizationPKCERequestToken auth = new AuthorizationPKCERequestToken ();
93
+ final String accessToken = auth . getAuthorizationCodeToken (
94
94
" CLIENT ID" ,
95
95
" CODE" ,
96
96
" REDIRECT URI" ,
You can’t perform that action at this time.
0 commit comments