Cannot post to specific channel chat

Hello.

I am able to use https://api.nightbot.tv/1/channel/send to post messages to my own channel.

I am also a manager for channel “G.” I see that whenever I create an application for my own channel, it appears in channel “G” and vice-versa (along with App Name, Redirect URIs, Client ID, etc.).

My issue: when I use https://api.nightbot.tv/1/channel/send to post, the messages appear in my own channel but not in G’s. How can I specify the posts to appear in G’s channel?

Thank you.

You must follow the authorization flow as detailed here. You’ve already made an app, so step 1 is done. Now the owner of channel G must run the authorization URL in step 2; you can fill out the necessary query string parameters in the URL (in particular scope=channel_send) then send it to G to run. G will then be redirected to the specified redirect URL along with an authorization code, and assuming the redirect site handles step 4, you’ll then have the access token needed to post in G’s channel.

2 Likes

Thank you, @RokettoJanpu ! I’ll review your response in detail soon. I appreciate your prompt response.

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