Documentation
¶
Overview ¶
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- type APIResponse
- type CheerEventSubEvent
- type CheerEventSubResponse
- type DropsEntitlementsData
- type DropsEntitlementsResponse
- type EventsubCondition
- type EventsubResponse
- type EventsubSubscription
- type EventsubSubscriptionVerification
- type EventsubTransport
- type FollowEventSubEvent
- type FollowEventSubResponse
- type FollowWebSubResponse
- type FollowWebSubResponseData
- type RedemptionEventSubEvent
- type RedemptionEventSubResponse
- type RedemptionReward
- type RewardEventSubEvent
- type RewardEventSubResponse
- type RewardGlobalCooldown
- type RewardImage
- type RewardMax
- type SubEventSubEvent
- type SubEventSubResponse
- type SubWebSubEventData
- type SubWebSubResponse
- type SubWebSubResponseData
- type TransactionCost
- type TransactionProduct
- type TransactionWebSubResponse
- type TransactionWebsubEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
Data []interface{} `json:"data"`
}
type CheerEventSubEvent ¶
type CheerEventSubEvent struct {
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
BroadcasterUserID string `json:"broadcaster_user_id"`
BroadcasterUserLogin string `json:"broadcaster_user_login"`
BroadcasterUserName string `json:"broadcaster_user_name"`
IsAnonymous bool `json:"is_anonymous"`
Message string `json:"message"`
Bits int64 `json:"bits"`
}
type CheerEventSubResponse ¶
type CheerEventSubResponse struct {
Subscription EventsubSubscription `json:"subscription"`
Event CheerEventSubEvent `json:"event"`
}
type DropsEntitlementsData ¶ added in v0.3.0
type DropsEntitlementsResponse ¶ added in v0.3.0
type DropsEntitlementsResponse struct {
Pagination struct {
Cursor string `json:"cursor"`
} `json:"pagination"`
Data []DropsEntitlementsData `json:"data"`
}
type EventsubCondition ¶
type EventsubCondition struct {
BroadcasterUserID string `json:"broadcaster_user_id"`
}
type EventsubResponse ¶
type EventsubResponse struct {
Subscription EventsubSubscription `json:"subscription"`
Event interface{} `json:"event"`
}
type EventsubSubscription ¶
type EventsubSubscription struct {
ID string `json:"id"`
Status string `json:"status"`
Type string `json:"type"`
Version string `json:"version"`
Condition EventsubCondition `json:"condition"`
Transport EventsubTransport `json:"transport"`
CreatedAt string `json:"created_at"`
}
type EventsubSubscriptionVerification ¶ added in v0.3.0
type EventsubSubscriptionVerification struct {
Challenge string `json:"challenge"`
Subscription EventsubSubscription `json:"subscription"`
}
type EventsubTransport ¶
type FollowEventSubEvent ¶
type FollowEventSubEvent struct {
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
BroadcasterUserID string `json:"broadcaster_user_id"`
BroadcasterUserLogin string `json:"broadcaster_user_login"`
BroadcasterUserName string `json:"broadcaster_user_name"`
}
type FollowEventSubResponse ¶
type FollowEventSubResponse struct {
Subscription EventsubSubscription `json:"subscription"`
Event FollowEventSubEvent `json:"event"`
}
type FollowWebSubResponse ¶
type FollowWebSubResponse struct {
Data []FollowWebSubResponseData `json:"data"`
}
type RedemptionEventSubEvent ¶
type RedemptionEventSubEvent struct {
ID string `json:"id"`
BroadcasterUserID string `json:"broadcaster_user_id"`
BroadcasterUserLogin string `json:"broadcaster_user_login"`
BroadcasterUserName string `json:"broadcaster_user_name"`
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
UserInput string `json:"user_input"`
Status string `json:"status"`
Reward RedemptionReward `json:"reward"`
RedeemedAt string `json:"redeemed_at"`
}
type RedemptionEventSubResponse ¶
type RedemptionEventSubResponse struct {
Subscription EventsubSubscription `json:"subscription"`
Event RedemptionEventSubEvent `json:"event"`
}
type RedemptionReward ¶
type RewardEventSubEvent ¶
type RewardEventSubEvent struct {
ID string `json:"id"`
BroadcasterUserID string `json:"broadcaster_user_id"`
BroadcasterUserLogin string `json:"broadcaster_user_login"`
BroadcasterUserName string `json:"broadcaster_user_name"`
IsEnabled bool `json:"is_enabled"`
IsPaused bool `json:"is_paused"`
IsInStock bool `json:"is_in_stock"`
Title string `json:"title"`
Cost int64 `json:"cost"`
Prompt string `json:"prompt"`
IsUserInputRequired bool `json:"is_user_input_required"`
ShouldRedemptionsSkipRequestQueue bool `json:"should_redemptions_skip_request_queue"`
CooldownExpiresAt string `json:"cooldown_expires_at"`
RedemptionsRedeemedCurrentStream int64 `json:"redemptions_redeemed_current_stream"`
MaxPerStream RewardMax `json:"max_per_stream"`
MaxPerUserPerStream RewardMax `json:"max_per_user_per_stream"`
GlobalCooldown RewardGlobalCooldown `json:"global_cooldown"`
BackgroundColor string `json:"background_color"`
Image RewardImage `json:"image"`
DefaultImage RewardImage `json:"default_image"`
}
type RewardEventSubResponse ¶
type RewardEventSubResponse struct {
Subscription EventsubSubscription `json:"subscription"`
Event RewardEventSubEvent `json:"event"`
}
type RewardGlobalCooldown ¶
type RewardImage ¶
type SubEventSubEvent ¶
type SubEventSubEvent struct {
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
BroadcasterUserID string `json:"broadcaster_user_id"`
BroadcasterUserLogin string `json:"broadcaster_user_login"`
BroadcasterUserName string `json:"broadcaster_user_name"`
Tier string `json:"tier"`
IsGift bool `json:"is_gift"`
}
type SubEventSubResponse ¶
type SubEventSubResponse struct {
Subscription EventsubSubscription `json:"subscription"`
Event SubEventSubEvent `json:"event"`
}
type SubWebSubEventData ¶
type SubWebSubEventData struct {
BroadcasterID string `json:"broadcaster_id"`
BroadcasterName string `json:"broadcaster_name"`
IsGift bool `json:"is_gift"`
Tier string `json:"tier"`
PlanName string `json:"plan_name"`
UserID string `json:"user_id"`
UserName string `json:"user_name"`
GifterID string `json:"gifter_id"`
GifterName string `json:"gifter_name"`
}
type SubWebSubResponse ¶
type SubWebSubResponse struct {
Data []SubWebSubResponseData `json:"data"`
}
type SubWebSubResponseData ¶
type SubWebSubResponseData struct {
ID string `json:"id"`
EventType string `json:"event_type"`
EventTimestamp string `json:"event_timestamp"`
Version string `json:"version"`
EventData SubWebSubEventData `json:"event_data"`
}
type TransactionCost ¶
type TransactionProduct ¶
type TransactionWebSubResponse ¶
type TransactionWebSubResponse struct {
Data []TransactionWebsubEvent `json:"data"`
}
type TransactionWebsubEvent ¶
type TransactionWebsubEvent struct {
ID string `json:"id"`
Timestamp string `json:"timestamp"`
BroadcasterID string `json:"broadcaster_id"`
BroadcasterName string `json:"broadcaster_name"`
UserID string `json:"user_id"`
UserName string `json:"user_name"`
ProductType string `json:"product_type"`
Product TransactionProduct `json:"product_data"`
}