Nightbot Oauth2 help

Hi All,

I’ve been trying to make a little app that might be useful for some 24/7 streams and stuff, but that’s not what I’m here about. I was able to follow the guide up until step 4. of the #authorization-code-flow but now I’m stuck. For background, I am still a beginner but I’m learning but the responses to everyone else seemed pretty helpful so I thought I’d ask.

https://api.nightbot.tv/oauth2/token?grant_type=authorization_code&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&code=CODE&redirect_uri=http://localhost

{“status”:404,“message”:“Not Found”}

Heya, for that step you need to make a POST request. GET request will throw 404 error.

Thank you, I ended up using Postman to get the access token after fiddling around with other methods first. Postman made it too easy so now to figure out testing!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.