Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

how do i get bearer token on this new trash

Solved!

how do i get bearer token on this new trash

i'm trying to get my bearer token for a lua i'm making that requires your bearer token to read what song you're listening to and print it, where the **bleep** do i find the button to get it with the user-read-currently-playing flag

Reply

Accepted Solutions
Marked as solution

You can use the Network tab of the Developer tools of the browser on your desktop for this.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

4 Replies
Marked as solution

You can use the Network tab of the Developer tools of the browser on your desktop for this.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

thanks, just don't know why make it such bs

oh great "missing permissions"

Sorry I didn't find this earlier, but I've found a 2 years old Spotify API wrapper in LUA: https://hg.sr.ht/~cloudninja/lua-spotify/browse/Spotify.lua?rev=tip

You have to use that to get a valid access token for now on.

You can get a Client ID and Client Secret at the Dashboard section of dev.spotify.com. You also have to fill in a redirect URI add the dashboard your created app (and in your code).

Note: I'm not familiar with Lua, and haven't tested it myself.

Addition: I had Chat-GPT write instructions on how to use the wrapper. You can read them here.

I recommend to save the code of the wrapper in a separate file.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts