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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOAuthInconsistencies
(String channelName) boolean
hasAPIScope
(String scope) boolean
hasChatScope
(String scope) boolean
hasOAuthInconsistencies
(String channelName) static TwitchValidate
instance()
Method that returns the instance of TwitchValidate.boolean
boolean
void
updateAPIToken
(String token) void
updateChatToken
(String token) void
validateAPI
(String oAuthToken, String type) Method that validates an oAuthToken.void
validateChat
(String oAuthToken, String type)
-
Field Details
-
validC
public boolean validC -
validA
public boolean validA
-
-
Method Details
-
instance
Method that returns the instance of TwitchValidate.- Returns:
-
validateAPI
Method that validates an oAuthToken.- Parameters:
oAuthToken
-type
-
-
validateChat
-
hasChatScope
-
getChatScopes
-
getMissingChatScopes
-
getChatClientID
-
getChatLogin
-
getChatUserID
-
isChatValid
public boolean isChatValid() -
updateChatToken
-
hasAPIScope
-
getAPIScopes
-
getMissingAPIScopes
-
getAPIClientID
-
getAPILogin
-
getAPIUserID
-
isAPIValid
public boolean isAPIValid() -
updateAPIToken
-
checkOAuthInconsistencies
-
hasOAuthInconsistencies
-