Package com.github.twitch4j.graphql
Class TwitchGraphQL
java.lang.Object
com.github.twitch4j.graphql.TwitchGraphQL
This is an unofficial API that is not intended for third-party use. Use at your own risk. Methods could change or stop working at any time.
-
Constructor Summary
ConstructorDescriptionTwitchGraphQL
(String baseUrl, String userAgent, com.github.philippheuer.events4j.core.EventManager eventManager, String clientId, com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultToken, ProxyConfig proxyConfig, boolean batchingEnabled, Integer timeout, Map<String, String> additionalHeaders) Constructor -
Method Summary
Modifier and TypeMethodDescriptionacceptFriendRequest
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String targetId) addChannelBlockedTerm
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, Boolean isModEditable, List<String> phrases) Deprecated.addChannelPermittedTerm
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> phrases) approveUnbanRequest
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String id, String message) archivePoll
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String pollId) banUser
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String targetUserLogin, String reason) Deprecated.bulkApproveUnbanRequest
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, List<String> ids) bulkDenyUnbanRequest
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, List<String> ids) cancelPrediction
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId) createClip
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, Double offsetSeconds, String broadcastId, String videoId) createCommunityPointsGoal
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreateCommunityPointsCommunityGoalInput input) createModComment
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String targetId, String text) createPoll
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePollInput input) createPrediction
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePredictionEventInput input) deleteChannelBlockedTerm
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> phrases) Deprecated.deleteChannelPermittedTerm
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> phrases) deleteClips
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, List<String> slugs) deleteCommunityPointsGoal
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String goalId) denyUnbanRequest
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String id, String message) fetchActivePredictions
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId) fetchBanStatus
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String userId) fetchChannelPointRewards
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin) fetchChatHistory
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String userId, String after) fetchChatters
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin) fetchLastBroadcast
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId, String userLogin) fetchLockedPredictions
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId) fetchModComments
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String targetId, String after) fetchMods
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin, String after, Integer limit) fetchPrediction
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId) fetchSquadStream
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String id) fetchUnbanRequests
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin, String cursor, Integer limit, com.github.twitch4j.graphql.internal.type.UnbanRequestsSortOrder order, com.github.twitch4j.graphql.internal.type.UnbanRequestStatus status, String userId) fetchUser
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId, String userLogin) fetchUserEmoteSets
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId) fetchUserSubscriptions
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId, Integer first, String after) fetchVideoComments
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String videoId, String id, String after, String before, Integer first, Integer last) fetchVips
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin, String after, Integer limit) followUser
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, Long targetUserId, Boolean goLiveNotification) Follow a userlockPrediction
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId) rejectFriendRequest
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String targetId) resolvePrediction
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId, String outcomeId) terminatePoll
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String pollId) unfollowUser
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, Long targetUserId) Unfollow a userupdateClip
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String slug, String newTitle) updateCommunityPointsGoal
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.UpdateCommunityPointsCommunityGoalInput input) updateRedemptionStatus
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String redemptionId, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus) updateRedemptionStatuses
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> redemptionIds, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus oldStatus, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus)
-
Constructor Details
-
TwitchGraphQL
public TwitchGraphQL(String baseUrl, String userAgent, com.github.philippheuer.events4j.core.EventManager eventManager, String clientId, com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultToken, ProxyConfig proxyConfig, boolean batchingEnabled, Integer timeout, Map<String, String> additionalHeaders) Constructor- Parameters:
baseUrl
- Base UrluserAgent
- User AgenteventManager
- Event ManagerclientId
- Client IddefaultToken
- Default TokenproxyConfig
- Proxy ConfigbatchingEnabled
- Query Batchingtimeout
- Query TimeoutadditionalHeaders
- Custom headers
-
-
Method Details
-
fetchBanStatus
public CommandFetchBanStatus fetchBanStatus(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String userId) -
addChannelBlockedTerm
@Deprecated public CommandAddChannelBlockedTerm addChannelBlockedTerm(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, Boolean isModEditable, List<String> phrases) Deprecated. -
deleteChannelBlockedTerm
@Deprecated public CommandDeleteChannelBlockedTerm deleteChannelBlockedTerm(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> phrases) Deprecated. -
addChannelPermittedTerm
public CommandAddChannelPermittedTerm addChannelPermittedTerm(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> phrases) -
deleteChannelPermittedTerm
public CommandDeleteChannelPermittedTerm deleteChannelPermittedTerm(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> phrases) -
fetchChatHistory
public CommandFetchChatHistory fetchChatHistory(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String userId, String after) -
fetchChatters
public CommandFetchChatters fetchChatters(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin) -
createClip
public CommandCreateClip createClip(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, Double offsetSeconds, String broadcastId, String videoId) -
deleteClips
public CommandDeleteClips deleteClips(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, List<String> slugs) -
updateClip
public CommandUpdateClip updateClip(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String slug, String newTitle) -
fetchChannelPointRewards
public CommandFetchCommunityPointsSettings fetchChannelPointRewards(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin) -
createCommunityPointsGoal
public CommandCreateCommunityPointsGoal createCommunityPointsGoal(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreateCommunityPointsCommunityGoalInput input) -
deleteCommunityPointsGoal
public CommandDeleteCommunityPointsGoal deleteCommunityPointsGoal(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String goalId) -
updateCommunityPointsGoal
public CommandUpdateCommunityPointsGoal updateCommunityPointsGoal(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.UpdateCommunityPointsCommunityGoalInput input) -
updateRedemptionStatus
public CommandUpdateCustomRedemptionStatus updateRedemptionStatus(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String redemptionId, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus) -
updateRedemptionStatuses
public CommandUpdateCustomRedemptionStatuses updateRedemptionStatuses(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, List<String> redemptionIds, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus oldStatus, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus) -
acceptFriendRequest
public CommandAcceptFriendRequest acceptFriendRequest(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String targetId) -
rejectFriendRequest
public CommandRejectFriendRequest rejectFriendRequest(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String targetId) -
fetchLastBroadcast
public CommandFetchLastBroadcast fetchLastBroadcast(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId, String userLogin) -
createModComment
public CommandCreateModComment createModComment(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String targetId, String text) -
fetchModComments
public CommandFetchModComments fetchModComments(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String targetId, String after) -
fetchMods
public CommandFetchMods fetchMods(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin, String after, Integer limit) -
archivePoll
public CommandArchivePoll archivePoll(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String pollId) -
createPoll
public CommandCreatePoll createPoll(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePollInput input) -
fetchPoll
public CommandFetchPoll fetchPoll(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String pollId) -
terminatePoll
public CommandTerminatePoll terminatePoll(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String pollId) -
cancelPrediction
public CommandCancelPrediction cancelPrediction(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId) -
createPrediction
public CommandCreatePrediction createPrediction(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePredictionEventInput input) -
fetchActivePredictions
public CommandFetchActivePredictions fetchActivePredictions(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId) -
fetchLockedPredictions
public CommandFetchLockedPredictions fetchLockedPredictions(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId) -
fetchPrediction
public CommandFetchPrediction fetchPrediction(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId) -
lockPrediction
public CommandLockPrediction lockPrediction(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId) -
resolvePrediction
public CommandResolvePrediction resolvePrediction(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String predictionEventId, String outcomeId) -
fetchSquadStream
public CommandFetchSquadStream fetchSquadStream(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String id) -
approveUnbanRequest
public CommandApproveUnbanRequest approveUnbanRequest(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String id, String message) -
bulkApproveUnbanRequest
public CommandBulkApproveUnbanRequest bulkApproveUnbanRequest(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, List<String> ids) -
bulkDenyUnbanRequest
public CommandBulkDenyUnbanRequest bulkDenyUnbanRequest(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, List<String> ids) -
denyUnbanRequest
public CommandDenyUnbanRequest denyUnbanRequest(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String id, String message) -
fetchUnbanRequests
public CommandFetchUnbanRequests fetchUnbanRequests(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin, String cursor, Integer limit, com.github.twitch4j.graphql.internal.type.UnbanRequestsSortOrder order, com.github.twitch4j.graphql.internal.type.UnbanRequestStatus status, String userId) -
banUser
@Deprecated public CommandBanUser banUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String targetUserLogin, String reason) Deprecated. -
fetchUser
public CommandFetchUser fetchUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId, String userLogin) -
fetchUserEmoteSets
public CommandFetchUserEmoteSets fetchUserEmoteSets(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId) -
fetchUserSubscriptions
public CommandFetchUserSubscriptions fetchUserSubscriptions(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String userId, Integer first, String after) -
fetchVideoComments
-
fetchVips
public CommandFetchVips fetchVips(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelLogin, String after, Integer limit) -
followUser
public CommandFollowUser followUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, Long targetUserId, Boolean goLiveNotification) Follow a user- Parameters:
auth
- CredentialtargetUserId
- target user, that the user the auth token was provided for will followgoLiveNotification
- should the follower be notified every time a streamer goes live?- Returns:
- CommandFollowUser
-
unfollowUser
public CommandUnfollowUser unfollowUser(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, Long targetUserId) Unfollow a user- Parameters:
auth
- CredentialtargetUserId
- target user, that the user the auth token was provided for will follow- Returns:
- CommandUnfollowUser
-