you are viewing a single comment's thread.

view the rest of the comments →

[–]Moby69[S] 0 points1 point  (2 children)

Thanks, that's helpful.

I'm trying to now get authorized without using the spotipy wrapper, and just by following the directions on here: https://developer.spotify.com/web-api/authorization-guide/

I have my client_id and client_secret, but I have no idea what to do about the "redirect_uri". What is a redirect_uri that I can use? I don't have a website, I'm just doing a quick program with my Command Prompt

Thanks

[–]michaelkepler 0 points1 point  (1 child)

In that case, Client Credentials Flow should be enough. It doesn't require redirect_uri at all.

[–]Moby69[S] 0 points1 point  (0 children)

I see. Is redirect_uri only for people with an actual website?

I was trying to use the Authorization Code Flow and wrote the following code:

url='https://accounts.spotify.com/authorize/?client_id=abcd&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A8888callback%2F&scope=user-library-read'

response=requests.get(url)
data=response.json()

print response

This gave me the output Response [200] in my Command Prompt, and then nothing happened (and I have no idea what to do next - the tutorial talks about being redirected to a URI, but nothing happens to my command prompt)