- Python Programming Blueprints
- Daniel Furtado Marcus Pennington
- 403字
- 2021-06-24 18:53:48
Creating a Spotify app
The first thing we need to do is create a Spotify app; after that, we are going to get access keys so we can authenticate and consume the REST API.
Head over to https://beta.developer.spotify.com/dashboard/ and further down on the page you can find the Login button, and if you don't have an account, you can create a new one:

If you don't have a Spotify account, you will have to create one first. You should be able to create applications if you sign up for the free account, but I would recommend signing up for the premium account because it is a great service with a great music catalog.
When you log in to the Spotify developer website, you will see a page similar to the following:

At the moment, we don't have any application created (unless you have already created one), so go ahead and click on the CREATE AN APP button. A dialog screen to create the application will be displayed:

Here, we have three required fields: the application's name, description, and also some checkboxes where you will have to tell Spotify what you're building. The name should be pytify and in the description, you can put anything you want, but let's add something like Application for controlling the Spotify client from the terminal. The type of application we are building will be a website.
When you are done, click on the NEXT button at the bottom of the dialog screen.
The second step in the application's creation process is to inform Spotify whether you are creating a commercial integration. For the purposes of this book, we are going to select NO; however, if you are going to create an application that will monetize, you should definitely select YES.
In the next step, the following dialog will be displayed:

If you agree with all the conditions, just select all the checkboxes and click the SUBMIT button.
If the application has been created successfully, you will be redirected to the application's page, which is shown as follows:

Click on the SHOW CLIENT SECRET link and copy the values of the Client ID and the Client Secret. We are going to need these keys to consume Spotify's REST API.
- Mastering Node.js(Second Edition)
- 黑客攻防實(shí)戰(zhàn)技術(shù)完全手冊(cè):掃描、嗅探、入侵與防御
- MERN Quick Start Guide
- 物聯(lián)網(wǎng)安全(原書第2版)
- 網(wǎng)絡(luò)創(chuàng)新指數(shù)研究
- Socket.IO Real-time Web Application Development
- 城市治理一網(wǎng)統(tǒng)管
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- Kong網(wǎng)關(guān):入門、實(shí)戰(zhàn)與進(jìn)階
- Working with Legacy Systems
- Bonita Open Solution 5.x Essentials
- 網(wǎng)絡(luò)環(huán)境中基于用戶視角的信息質(zhì)量評(píng)價(jià)研究
- Learning Windows 8 Game Development