This URI enables the Spotify authentication service to automatically re-launch your app every time the user logs in. This will come in handy when authorizing our app. In our app settings we also need to whitelist a redirect URI. env file when we upload to GitHub to make sure we don’t accidentally expose them, but for now you can drop them into a Jupyter notebook cell with the variables client_id and client_secret. Our Client ID is a unique identifier and our Client Secret is the key that we’ll pass in to secure calls to the Spotify Web API. Store these in a python file for now because we will need to reference them later to authorize. You can always reset your Client Secret if anything goes wrong. I will call my app My Wrapped and give it a one line description.Īfter hitting Create, go to your dashboard and look for your Client IDand Client Secret. You’ll also be asked to sign away your life to the agreement terms. You’ll be prompted to give your app a name and description. On your dashboard screen click Create An App. First thing we need to do is register our app with Spotify. MY APP here will be our python function to get data and store it in a google sheet, instead of a standalone app. There will be 3 parties involved in the process. User Authorization is where both Spotify and the user grant us permission to read their listening data. Looking at the documentation, the only two requirements are Authorization and Path Parameter.Īuthorization can be tricky so let’s dive in together there. There is not a ton of flexibility but it’s perfect for this tutorial. We will use the Web API endpoint to get a user’s top artists and tracks. I found a very specific endpoint that is going to make our lives easy. Makes you think they care about their developers. We will be using Glide to build our app Requirements We will be using an API keys from Spotify and Google to access user data We will be writing our code first in a Jupyter Notebook and then in the VS Code editor We are going to be doing this in the Python using spotipy and gspread If you’re more of a visual learner, you can watch the YouTube tutorial here. We will build it so it updates every month instead of once a year. We are going to create a Spotify Wrapped App that generates our top tracks over various time periods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |