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
Index ¶
- Constants
- type AuthorizationResponse
- type LoginParameters
- type LoginResponse
- func ClientCredentialsLogin(p LoginParameters) (LoginResponse, error)
- func CredentialsLogout(p LoginParameters) (LoginResponse, error)
- func RefreshUserToken(p RefreshParameters) (LoginResponse, error)
- func UserCredentialsLogin(p LoginParameters, webserverIP string, webserverPort string) (LoginResponse, error)
- type RefreshParameters
- type UserAuthorizationQueryResponse
Constants ¶
View Source
const ClientCredentialsURL = "https://id.twitch.tv/oauth2/token?grant_type=client_credentials"
View Source
const RefreshTokenURL = "https://id.twitch.tv/oauth2/token?grant_type=refresh_token"
View Source
const RevokeTokenURL = "https://id.twitch.tv/oauth2/revoke"
View Source
const UserAuthorizeURL = "https://id.twitch.tv/oauth2/authorize?response_type=code"
View Source
const UserCredentialsURL = "https://id.twitch.tv/oauth2/token?grant_type=authorization_code"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationResponse ¶
type LoginParameters ¶
type LoginResponse ¶
type LoginResponse struct {
Response AuthorizationResponse
ExpiresAt time.Time
}
func ClientCredentialsLogin ¶
func ClientCredentialsLogin(p LoginParameters) (LoginResponse, error)
func CredentialsLogout ¶
func CredentialsLogout(p LoginParameters) (LoginResponse, error)
func RefreshUserToken ¶
func RefreshUserToken(p RefreshParameters) (LoginResponse, error)
func UserCredentialsLogin ¶
func UserCredentialsLogin(p LoginParameters, webserverIP string, webserverPort string) (LoginResponse, error)
type RefreshParameters ¶
Click to show internal directories.
Click to hide internal directories.