// The ID of the user that you’re checking to see whether they subscribe to the broadcaster in broadcaster_id.
// This ID must match the user ID in the access Token.
UserIDstring`url:"user_id"`
}
typeCheckUserSubscriptionResponsestruct{
// A list that contains a single object with information about the user’s subscription.
Data[]UserSubscription`json:"data"`
}
typeUserSubscriptionstruct{
// 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. The object includes this field only if is_gift is true.
GifterID*string`json:"gifter_id"`
// The gifter’s login name. The object includes this field only if is_gift is true.
GifterLogin*string`json:"gifter_login"`
// The gifter’s display name. The object includes this field only if is_gift is true.
GifterName*string`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 type of subscription. Possible values are:
//
// 1000 — Tier 1
//
// 2000 — Tier 2
//
// 3000 — Tier 3
Tierstring`json:"tier"`
}
// Checks whether the user subscribes to the broadcaster’s channel.
//
// Requires a user access token that includes the user:read:subscriptions scope.
//
// A Twitch extensions may use an app access token if the broadcaster has granted the user:read:subscriptions scope from within the Twitch Extensions manager.