Skip to content

Commit

Permalink
Update refresh token web app steps to follow
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenFrankel committed Aug 1, 2023
1 parent d88c3c8 commit 5e8317f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ tap-spotify --about
Before using `tap-spotify`, you will need to create an [app](https://developer.spotify.com/documentation/web-api/concepts/apps) from your [Spotify developer dashboard](https://developer.spotify.com/dashboard). We recommend restricting your use of this app to `tap-spotify` only. Provide an name, description and a redirect URI of `https://alecchen.dev/spotify-refresh-token` (explained below).

#### Get a Refresh Token
Use [this web app](https://alecchen.dev/spotify-refresh-token) made by [Alec Chen](https://alecchen.dev/) to get a refresh token with your Spotify app credentials:
Use [this web app](https://alecchen.dev/spotify-refresh-token?scope=user-top-read) made by [Alec Chen](https://alecchen.dev/) to get a refresh token with your Spotify app credentials:
- Provide your app client ID and secret in the appropriate fields
- Select the following required scopes: [`user-top-read`](https://developer.spotify.com/documentation/web-api/concepts/scopes#user-top-read)
- Click 'Submit' and follow the Spotify login flow
- Copy the refresh token

If a required scope is not set, `tap-spotify` will encounter a `403 Forbidden` response from the Spotify Web API and fail. You must set all required scopes.
The following token scopes are required (and are pre-selected for you when following the above web app link):
- [`user-top-read`](https://developer.spotify.com/documentation/web-api/concepts/scopes#user-top-read)

Some scopes are not required. Setting these will allow `tap-spotify` to read more specific and possibly sensitive resource data, so do this at your own risk.
- Click 'Submit'
- Follow the Spotify login flow
- Copy the refresh token
If a required scope is not set, `tap-spotify` will encounter a `403 Forbidden` response from the Spotify Web API and fail. You must set all required scopes.

Some scopes are not required. Setting these will allow `tap-spotify` to read more specific and possibly sensitive resource data, so do this at your own risk.

## Usage

Expand Down

0 comments on commit 5e8317f

Please sign in to comment.