updated README file
This commit is contained in:
12
README.md
12
README.md
@@ -5,24 +5,30 @@
|
|||||||
The Spotify Remote Controller is an ESP32 project that allows you to control your Spotify playback using a custom hardware interface. It features an AMOLED display, WiFi connectivity, and integration with the Spotify API to fetch and display track information, playlists, and devices.
|
The Spotify Remote Controller is an ESP32 project that allows you to control your Spotify playback using a custom hardware interface. It features an AMOLED display, WiFi connectivity, and integration with the Spotify API to fetch and display track information, playlists, and devices.
|
||||||
|
|
||||||
## Tokens
|
## Tokens
|
||||||
|
|
||||||
The app is working with Spotify OAuth, which means you need to:
|
The app is working with Spotify OAuth, which means you need to:
|
||||||
|
|
||||||
- Create a new app through: `https://developer.spotify.com/dashboard`
|
- Create a new app through: `https://developer.spotify.com/dashboard`
|
||||||
|
- Set the callback URI to `http://localhost`
|
||||||
- Go to app settings, copy `ClientID` and `ClientSecret`
|
- Go to app settings, copy `ClientID` and `ClientSecret`
|
||||||
- Paste them into `Spotif.ino`
|
- Paste them into `Spotif.ino`
|
||||||
- Go to `https://accounts.spotify.com/authorize?client_id=<ClientID>&response_type=code&redirect_uri=http://localhost:5137&scope=user-read-playback-state%20user-modify-playback-state`
|
- Go to `https://accounts.spotify.com/authorize?client_id=<ClientID>&response_type=code&redirect_uri=http://localhost&scope=user-read-playback-state%20user-modify-playback-state`
|
||||||
- Copy the code from the URL
|
- Copy the code from the URL
|
||||||
- Use Postman to make a call to `https://accounts.spotify.com/api/token` with the following body:
|
- Use Postman or Insomnia to make a call to `https://accounts.spotify.com/api/token` with the header `Content-type: application/x-www-form-urlencoded` and following body:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"grant_type": "authorization_code",
|
"grant_type": "authorization_code",
|
||||||
"code": "<code>",
|
"code": "<code>",
|
||||||
"redirect_uri": "http://localhost:5137",
|
"redirect_uri": "http://localhost",
|
||||||
"client_id": "<ClientID>",
|
"client_id": "<ClientID>",
|
||||||
"client_secret": "<ClientSecret>"
|
"client_secret": "<ClientSecret>"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- Copy the `access_token` and `refresh_token` from the response
|
- Copy the `access_token` and `refresh_token` from the response
|
||||||
- Paste it into `Spotif.ino`
|
- Paste it into `Spotif.ino`
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
|
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
|
||||||
Reference in New Issue
Block a user