// The current number of subscriber points earned by this broadcaster.
// Points are based on the subscription tier of each user that subscribes to this broadcaster.
// For example, a Tier 1 subscription is worth 1 point, Tier 2 is worth 2 points, and Tier 3 is worth 6 points.
// The number of points determines the number of emote slots that are unlocked for the broadcaster (see Subscriber Emote Slots).
Pointsint`json:"points"`
// The total number of users that subscribe to this broadcaster.
Totalint`json:"total"`
}
typeBroadcasterSubscriptionstruct{
// An ID that identifies the broadcaster.
BroadcasterIDstring`json:"broadcaster_id"`
// The broadcaster’s login name.
BroadcasterLoginstring`json:"broadcaster_login"`
// The broadcaster’s display name.
BroadcasterNamestring`json:"broadcaster_name"`
// The ID of the user that gifted the subscription to the user. Is an empty string if is_gift is false.
GifterIDstring`json:"gifter_id"`
// The gifter’s login name. Is an empty string if is_gift is false.
GifterLoginstring`json:"gifter_login"`
// The gifter’s display name. Is an empty string if is_gift is false.
GifterNamestring`json:"gifter_name"`
// A Boolean value that determines whether the subscription is a gift subscription. Is true if the subscription was gifted.
IsGiftbool`json:"is_gift"`
// The name of the subscription.
PlanNamestring`json:"plan_name"`
// The type of subscription. Possible values are:
//
// 1000 — Tier 1
//
// 2000 — Tier 2
//
// 3000 — Tier 3
Tierstring`json:"tier"`
// An ID that identifies the subscribing user.
UserIDstring`json:"user_id"`
// The user’s display name.
UserNamestring`json:"user_name"`
// The user’s login name.
UserLoginstring`json:"user_login"`
}
// Gets a list of users that subscribe to the specified broadcaster.
//
// Requires a user access token that includes the channel:read:subscriptions scope.
//
// A Twitch extensions may use an app access token if the broadcaster has granted the channel:read:subscriptions scope from within the Twitch Extensions manager.