I am attempting to create an OAuth2 access token for use by server-side code. I only need to create the access token once, ideally by posting my client ID, key, secret, and scope to some URL. I am going by this procedure [https://api-docs.nightbot.tv/#oauth-2], which does not document that URL. Is this an option, or do I have to 302 web users to your authorization endpoint? There will only be one user of this application (eventually an Amazon Lambda), so the redirect doesn’t make sense for me.
That works. (I had tried it, but was providing a different scope than the one I was using in the request, hence the…missing required scope. I believe all is well now. Thank you again.)