Just wondering if we know how the upcoming loyalty badges will be presented?
For example, a tag passed through IRC:
Would like to see if we can get a heads up before it’s released so we can updated as necessary
Checked out the blog and the connected help page, but nothing included for developers yet!
It will likely just be via badges tag, although the subscriber tag could work as an additional data point, so instead of just 0 or 1, you could have the number of months or the level of loyalty badge in it.
Yeah, it’d be interesting if they also passed the total months in the subscriber tag, they could have the badge in the api end point: "https://api.twitch.tv/kraken/chat/CHANNEL/badges and we could pull from there based on the subscriber tag (if they pass total months).
But if they pass the ID directly through the badges tag, that’d much easier (for us and for them).
Edit: Since user will also most likely be able to opt in/out of showing this badge, it’ll probably be via the badges icon. Or will it replace the sub badge icon we see now?
Double Edit: It seems that the loyalty badge will replace the existing sub badge today (which in the future, is the “1 month loyalty badge”. So I am supposing that it’ll work the same way for today’s Sub Badge, twitch will just return the appropriate badge.
The loyalty badges will be present in the existing badges tag. So you’ll see things like
badges=subscriber/12. The images can be retrieved the same way all other badge images are retrieved, via https://badges.twitch.tv/v1/badges/global/display and https://badges.twitch.tv/v1/badges/channels/:channel_id/display
See [beta] Badge API
There are no plans to include the actual number of months subscribed in the
subscriber tag, at least not at launch. So it will remain a 0 or 1 tag.
Here is an example channel that has badges already uploaded: https://badges.twitch.tv/v1/badges/channels/12519/display
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.