How to get bits information in real-time?

Thank you for your answer!

I try how to guide in ‘https://dev.twitch.tv/docs/pubsub/’ using twitchps(https://github.com/jctrvlr/twitchPS).

I need token for channel-bits-events-v1 topic.
But, I don’t know how to get token.

Can I get the token using code like below?
—OAuth Authorization Code Flow—
GET https://id.twitch.tv/oauth2/authorize
?client_id=
&redirect_uri=
&response_type=code
&scope=