How to get bits information in real-time?

I want know that information of bits when cheer up using bits.

I want information like below.------------------------------
Who is cheer to streamer?
How much of using bits for cheer?

If you know API or how to get bits information.
Please share me.

Right now you have 2 options, you can either connect to chat and get them that way https://dev.twitch.tv/docs/irc/, or subscribe to the pubsub topic https://dev.twitch.tv/docs/pubsub/

There’s also a cheering webhook in development but no info on when that will be available.

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=

You need to follow the Authentication docs https://dev.twitch.tv/docs/authentication/

There are several methods to obtain a token, which one you use is up to you and depends on your use case. Also keep in mind that you need a token of the channel you wish to receive events from. So if it’s your channel you can go through the auth process yourself, if it’s for a channel belonging to someone else then they will need to go through your authentication process.