Added spotify api notes
This commit is contained in:
parent
19a40483aa
commit
b6cd52db2d
1 changed files with 31 additions and 0 deletions
31
Spotify.md
Normal file
31
Spotify.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
|
||||
# How the Spotify API registration works
|
||||
|
||||
[Spotify Docs](https://developer.spotify.com/documentation/web-api/tutorials/getting-started#create-an-app)
|
||||
|
||||
## Creating an App with their developer console
|
||||
|
||||
https://developer.spotify.com/dashboard
|
||||
|
||||
*App* name: Serena
|
||||
*App description*: open source radio station emulator to get the vibe right
|
||||
*redirect URI*: https://localhost:3000
|
||||
|
||||
## Requesting an Access Token
|
||||
|
||||
```Bash
|
||||
curl -X POST "https://accounts.spotify.com/api/token" \
|
||||
-H "Content-Type: application/x-www-form-urlencoded" \
|
||||
-d "grant_type=client_credentials&client_id=your-client-id&client_secret=your-client-secret"
|
||||
```
|
||||
|
||||
Our Codes:
|
||||
Client:
|
||||
e1274b6593674771bea12d8366c7978b
|
||||
Client Secret:
|
||||
07a3440d8d4b4fbe9d736a48df079085
|
||||
|
||||
Resulting access token is valid for **One Hour**
|
||||
|
||||
Access Token:
|
||||
BQAtYzlcWAvIdAEIE38FOnzWbUuXWm-XRYXB7DBe1xYUSqonVGDi4_H-9pWKbhexZ-ePP8uQSe-9VNaz05gCJq549tI3EFT3UoFvcUcBvwtQGK3i0dBh2sQi7bohCgDBIGcnzADcd-Y
|
Loading…
Add table
Add a link
Reference in a new issue