Package tv.phantombot.twitch.api
Class TwitchValidate
java.lang.Object
tv.phantombot.twitch.api.TwitchValidate
Handle Validate requests of the OAUTH2 token from Twitch.
- Author:
- ScaniaTV, IllusionaryOne, gmt2001
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckOAuthInconsistencies(String channelName) booleanhasAPIScope(String scope) booleanhasAppScope(String scope) booleanhasChatScope(String scope) booleanhasOAuthInconsistencies(String channelName) static TwitchValidateinstance()Method that returns the instance of TwitchValidate.booleanbooleanbooleanvoidupdateAPIToken(String token) voidupdateAppToken(String token) voidupdateChatToken(String token) voidvalidateAPI(String oAuthToken, String type) Method that validates an oAuthToken.voidvalidateApp(String oAuthToken, String type) voidvalidateChat(String oAuthToken, String type) 
- 
Field Details- 
validCpublic boolean validC
- 
validApublic boolean validA
- 
validTpublic boolean validT
 
- 
- 
Method Details- 
instanceMethod that returns the instance of TwitchValidate.- Returns:
 
- 
validateAPIMethod that validates an oAuthToken.- Parameters:
- oAuthToken-
- type-
 
- 
validateChat
- 
validateApp
- 
hasChatScope
- 
getChatScopes
- 
getMissingChatScopes
- 
getChatClientID
- 
getChatLogin
- 
getChatUserID
- 
isChatValidpublic boolean isChatValid()
- 
updateChatToken
- 
hasAPIScope
- 
getAPIScopes
- 
getMissingAPIScopes
- 
getAPIClientID
- 
getAPILogin
- 
getAPIUserID
- 
isAPIValidpublic boolean isAPIValid()
- 
updateAPIToken
- 
hasAppScope
- 
getAppScopes
- 
getMissingAppScopes
- 
getAppClientID
- 
isAppValidpublic boolean isAppValid()
- 
updateAppToken
- 
checkOAuthInconsistencies
- 
hasOAuthInconsistencies
 
-