# PR Description 1. `adjust_playback_position` - Adjust the playback position within the currently playing track 2. `skip_to_previous_track` - Skip to the previous track in the user's queue, if any 3. `skip_to_next_track` - Skip to the next track in the user's queue, if any 4. `pause_playback` - Pause the currently playing track, if any 5. `resume_playback` - Resume the currently playing track, if any 6. `start_tracks_playback_by_id` - Start playback of a list of tracks (songs) 7. `get_playback_state` - Get information about the user's current playback state, including track or episode, and active device 8. `get_currently_playing` - Get information about the user's currently playing track 9. `get_track_from_id` - Get information about a track 10. `get_recommendations` - Get track (song) recommendations based on seed artists, genres, and tracks, and multiple target audio stats 11. `get_tracks_audio_features` - Get audio features for a list of tracks (songs) ---------------------- My favorite feature of this toolkit is 1. Start playing my favorite song 2. Get the song that I'm currently playing 3. Get audio features of that song 4. Ask for recommended songs that are similar to it 5. Jam out ------------
14 lines
580 B
Python
14 lines
580 B
Python
SPOTIFY_BASE_URL = "https://api.spotify.com/v1"
|
|
|
|
ENDPOINTS = {
|
|
"player_get_playback_state": "/me/player",
|
|
"player_get_currently_playing": "/me/player/currently-playing",
|
|
"player_modify_playback": "/me/player/play",
|
|
"player_pause_playback": "/me/player/pause",
|
|
"player_skip_to_next": "/me/player/next",
|
|
"player_skip_to_previous": "/me/player/previous",
|
|
"player_seek_to_position": "/me/player/seek",
|
|
"tracks_get_track": "/tracks/{track_id}",
|
|
"tracks_get_recommendations": "/recommendations",
|
|
"tracks_get_audio_features": "/audio-features",
|
|
}
|