![]() ![]() To send a regular GET request with requests the library provides us a get method which just needs a URL Once you have requests installed we can proceed to coding. If you don't have the library installed you can use an official installation guide. Making requests in Python is very easy with requests library. Now we can just replace /me with your ID and everything should be working. This is exactly why I asked you to get your ID by yourself. But we all like doing things in an easy way and getting that access token is just too hard. This means that we have to get a token that is related to our user for Deezer to know who is "me". but if we try to perform a request to the endpoint we receive an errorĪn active access token must be used to query information about the current user The docs say that the URL for getting info about a user is. We just need to send a request to a URL specified in the documentation and information about a user should be in the response.īut before doing any requests with Python we can try doing some requests in Deezer's API explorer. To fetch a user we can use Deezer's User endpoint. To begin our fetching journey let's fetch ourselves first. For more information on how to do that you can check out this guide. If you want to get IDs of users of your project you'll need to create a Deezer application and connect that application to your project. ![]()
0 Comments
Leave a Reply. |