Hi, I am trying to use the osu API for a discord bot. I am having trouble figuring out how to retrieve a json response using requests. (I'm using python). I am also getting an error that is troubling me.
Here is the error:
"b'{"error":"The authorization grant type is not supported by the authorization server."}'"
And my code is linked here:
[redacted]
I put in some extra headers specifying the content type that I would like to get back. It worked in a youtube tutorial but not for me.
My question is: Why is the response html instead of json? And, why am I getting that error after I specify which content I would like to receive?
Sorry if this is confusing
Thanks
Here is the error:
"b'{"error":"The authorization grant type is not supported by the authorization server."}'"
And my code is linked here:
[redacted]
I put in some extra headers specifying the content type that I would like to get back. It worked in a youtube tutorial but not for me.
My question is: Why is the response html instead of json? And, why am I getting that error after I specify which content I would like to receive?
Sorry if this is confusing
Thanks