Skip to content

Commit 9759941

Browse files
committed
Some minor doc updates
1 parent 3061386 commit 9759941

8 files changed

+14
-12
lines changed

docs/examples/access-token-with-authorization-code-flow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Authorization Using the Authorization Code Flow
22

3-
All API methods require authorization. Before using these methods you'll need to create an app at [Spotify's developer site](https://developer.spotify.com/web-api/).
3+
All API methods require authorization. Before using these methods you'll need to create an app at [Spotify's developer site](https://developer.spotify.com/documentation/web-api/).
44

55
The Authorization Code Flow method requires some interaction from the user but in turn allows access to user information. There are two steps required to authenticate the user. The first step is to request access to the user's account and data (known as *scopes*) and redirecting them to your app's authorize URL (also known as the callback URL).
66

@@ -83,7 +83,7 @@ print_r(
8383
```
8484

8585
## Refreshing an access token
86-
_As of version `2.11.0` it's possible to automatically refresh the access token, see [Automatically Refreshing access Tokens](automatically-refreshing-access-tokens.md) for more info._
86+
_As of version `2.11.0` it's possible to automatically refresh the access token, see [Automatically Refreshing Access Tokens](automatically-refreshing-access-tokens.md) for more info._
8787

8888
When the access token has expired, request a new one using the refresh token:
8989

@@ -98,4 +98,4 @@ $accessToken = $session->getAccessToken();
9898
$api->setAccessToken($accessToken);
9999
```
100100

101-
For more in-depth technical information about the Authorization Code Flow, please refer to the [Spotify Web API documentation](https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow).
101+
For more in-depth technical information about the Authorization Code Flow, please refer to the [Spotify Web API documentation](https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow).

docs/examples/access-token-with-client-credentials-flow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Authorization Using the Client Credentials Flow
22

3-
All API methods require authorization. Before using these methods you'll need to create an app at [Spotify's developer site](https://developer.spotify.com/web-api/).
3+
All API methods require authorization. Before using these methods you'll need to create an app at [Spotify's developer site](https://developer.spotify.com/documentation/web-api/).
44

55
This method doesn't require any user interaction and no access to user information is therefore granted. This is the recommended method if you only need access to Spotify catalog data.
66

@@ -46,4 +46,4 @@ print_r(
4646
);
4747
```
4848

49-
For more in-depth technical information about the Client Credentials Flow, please refer to the [Spotify Web API documentation](https://developer.spotify.com/web-api/authorization-guide/#client_credentials_flow).
49+
For more in-depth technical information about the Client Credentials Flow, please refer to the [Spotify Web API documentation](https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-flow).

docs/examples/controlling-user-playback.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ $api->changeVolume([
5858
'volume_percent' => 78,
5959
]);
6060
```
61+
6162
## Retrying API calls
6263
Sometimes, a API call might return a `202 Accepted` response code. When this occurs, you should retry the request after a few seconds. For example:
6364

@@ -79,4 +80,4 @@ try {
7980
}
8081
```
8182

82-
Read more about working with Spotify Connect in the [Spotify API docs](https://developer.spotify.com/web-api/working-with-connect/).
83+
Read more about working with Spotify Connect in the [Spotify API docs](https://developer.spotify.com/documentation/web-api/guides/using-connect-web-api/).

docs/examples/following-artists-playlists-and-users.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Following Artists, Playlists, and Users
2+
23
A Spotify user can follow artists, playlists, and users. The API contains methods for all of this functionality.
34

45
## Following an artist or user

docs/examples/searching-the-spotify-catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Searching the Spotify Catalog
22

33
The whole Spotify catalog, including playlists, can be searched in various ways. Since the Spotify search contains so many features, this page just includes a basic example and one should refer to the
4-
[Spotify documentation](https://developer.spotify.com/web-api/search-item/) and [method reference](/docs/method-reference/SpotifyWebAPI.md) for more information.
4+
[Spotify documentation](https://developer.spotify.com/documentation/web-api/reference/search/search/) and [method reference](/docs/method-reference/SpotifyWebAPI.md) for more information.
55

66
```php
77
$results = $api->search('blur', 'artist');

docs/examples/setting-custom-curl-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Setting custom cURL options
22

3-
Sometimes, you need to override the default cURL options. For example incresing the timeout or setting some proxy setting.
3+
Sometimes, you need to override the default cURL options. For example increasing the timeout or setting some proxy setting.
44

55
In order to set custom cURL options, you'll need to instantiate a `Request` object yourself and passing it to `SpotifyWebAPI` instead of letting it set it up itself.
66

docs/examples/working-with-scopes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Working with Scopes
22

3-
All operations involving a user or their information, requires your app to request one or more scopes. You request scopes at the same time as the access token, for example:
3+
All operations involving a user or their information requires your app to request one or more scopes. You request scopes at the same time as the access token, for example:
44

55
```php
66
require 'vendor/autoload.php';
@@ -22,9 +22,9 @@ header('Location: ' . $session->getAuthorizeUrl($options));
2222
die();
2323
```
2424

25-
It's possible to request more scopes at any time, just add the new ones to the list. This will ask the user to approve your app again.
25+
It's possible to request more scopes at any time, simply add new ones to the list. This will ask the user to approve your app again.
2626

27-
Please refer to the Spotify docs for a full list of [all available scopes](https://developer.spotify.com/web-api/using-scopes/).
27+
Please refer to the Spotify docs for a full list of [all available scopes](https://developer.spotify.com/documentation/general/guides/scopes/).
2828

2929
## Checking Requested Scopes
3030
If you wish to check which scopes are granted for an access token, the `Session::getScope()` method can be used. For example, put the following code in your callback where the user will be redirected to by Spotify:

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require_once 'vendor/autoload.php';
2727
Download the latest release from the [releases page](https://github.com/jwilsson/spotify-web-api-php/releases). Unzip the files somewhere in your project and include a [PSR-4 compatible autoloader](http://www.php-fig.org/psr/psr-4/examples/) in your project.
2828

2929
## Configuration and setup
30-
First off, make sure you've created an app on [Spotify's developer site](https://developer.spotify.com/web-api/).
30+
First off, make sure you've created an app on [Spotify's developer site](https://developer.spotify.com/documentation/web-api/).
3131

3232
Now, before sending requests to Spotify, we need to create a session using your app info:
3333

0 commit comments

Comments
 (0)