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
ConstructorsConstructorDescriptionTwitchGraphQL(String baseUrl, String userAgent, EventManager eventManager, String clientId, OAuth2Credential defaultToken, ProxyConfig proxyConfig, boolean batchingEnabled, Integer timeout, Map<String, String> additionalHeaders) Constructor -
Method Summary
Modifier and TypeMethodDescriptionacceptFriendRequest(OAuth2Credential auth, String targetId) addChannelBlockedTerm(OAuth2Credential auth, String channelId, Boolean isModEditable, List<String> phrases) Deprecated.addChannelPermittedTerm(OAuth2Credential auth, String channelId, List<String> phrases) approveUnbanRequest(OAuth2Credential auth, String id, String message) archivePoll(OAuth2Credential auth, String pollId) banUser(OAuth2Credential auth, String channelId, String targetUserLogin, String reason) Deprecated.bulkApproveUnbanRequest(OAuth2Credential auth, List<String> ids) bulkDenyUnbanRequest(OAuth2Credential auth, List<String> ids) cancelPrediction(OAuth2Credential auth, String predictionEventId) createClip(OAuth2Credential auth, String channelId, Double offsetSeconds, String broadcastId, String videoId) createCommunityPointsGoal(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreateCommunityPointsCommunityGoalInput input) createModComment(OAuth2Credential auth, String channelId, String targetId, String text) createPoll(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePollInput input) createPrediction(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePredictionEventInput input) deleteChannelBlockedTerm(OAuth2Credential auth, String channelId, List<String> phrases) Deprecated.deleteChannelPermittedTerm(OAuth2Credential auth, String channelId, List<String> phrases) deleteClips(OAuth2Credential auth, List<String> slugs) deleteCommunityPointsGoal(OAuth2Credential auth, String channelId, String goalId) denyUnbanRequest(OAuth2Credential auth, String id, String message) fetchActivePredictions(OAuth2Credential auth, String channelId) fetchBanStatus(OAuth2Credential auth, String channelId, String userId) fetchChannelPointRewards(OAuth2Credential auth, String channelLogin) fetchChatHistory(OAuth2Credential auth, String channelId, String userId, String after) fetchChatters(OAuth2Credential auth, String channelLogin) fetchLastBroadcast(OAuth2Credential auth, String userId, String userLogin) fetchLockedPredictions(OAuth2Credential auth, String channelId) fetchModComments(OAuth2Credential auth, String channelId, String targetId, String after) fetchMods(OAuth2Credential auth, String channelLogin, String after, Integer limit) fetchPoll(OAuth2Credential auth, String pollId) fetchPrediction(OAuth2Credential auth, String predictionEventId) fetchSquadStream(OAuth2Credential auth, String id) fetchUnbanRequests(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(OAuth2Credential auth, String userId, String userLogin) fetchUserEmoteSets(OAuth2Credential auth, String userId) fetchUserSubscriptions(OAuth2Credential auth, String userId, Integer first, String after) fetchVideoComments(OAuth2Credential auth, String channelId, String videoId, String id, String after, String before, Integer first, Integer last) fetchVips(OAuth2Credential auth, String channelLogin, String after, Integer limit) followUser(OAuth2Credential auth, Long targetUserId, Boolean goLiveNotification) Follow a userlockPrediction(OAuth2Credential auth, String predictionEventId) rejectFriendRequest(OAuth2Credential auth, String targetId) resolvePrediction(OAuth2Credential auth, String predictionEventId, String outcomeId) terminatePoll(OAuth2Credential auth, String pollId) unfollowUser(OAuth2Credential auth, Long targetUserId) Unfollow a userupdateClip(OAuth2Credential auth, String slug, String newTitle) updateCommunityPointsGoal(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.UpdateCommunityPointsCommunityGoalInput input) updateRedemptionStatus(OAuth2Credential auth, String channelId, String redemptionId, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus) updateRedemptionStatuses(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, EventManager eventManager, String clientId, 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
-
addChannelBlockedTerm
@Deprecated public CommandAddChannelBlockedTerm addChannelBlockedTerm(OAuth2Credential auth, String channelId, Boolean isModEditable, List<String> phrases) Deprecated. -
deleteChannelBlockedTerm
@Deprecated public CommandDeleteChannelBlockedTerm deleteChannelBlockedTerm(OAuth2Credential auth, String channelId, List<String> phrases) Deprecated. -
addChannelPermittedTerm
public CommandAddChannelPermittedTerm addChannelPermittedTerm(OAuth2Credential auth, String channelId, List<String> phrases) -
deleteChannelPermittedTerm
public CommandDeleteChannelPermittedTerm deleteChannelPermittedTerm(OAuth2Credential auth, String channelId, List<String> phrases) -
fetchChatHistory
public CommandFetchChatHistory fetchChatHistory(OAuth2Credential auth, String channelId, String userId, String after) -
fetchChatters
-
createClip
public CommandCreateClip createClip(OAuth2Credential auth, String channelId, Double offsetSeconds, String broadcastId, String videoId) -
deleteClips
-
updateClip
-
fetchChannelPointRewards
public CommandFetchCommunityPointsSettings fetchChannelPointRewards(OAuth2Credential auth, String channelLogin) -
createCommunityPointsGoal
public CommandCreateCommunityPointsGoal createCommunityPointsGoal(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreateCommunityPointsCommunityGoalInput input) -
deleteCommunityPointsGoal
public CommandDeleteCommunityPointsGoal deleteCommunityPointsGoal(OAuth2Credential auth, String channelId, String goalId) -
updateCommunityPointsGoal
public CommandUpdateCommunityPointsGoal updateCommunityPointsGoal(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.UpdateCommunityPointsCommunityGoalInput input) -
updateRedemptionStatus
public CommandUpdateCustomRedemptionStatus updateRedemptionStatus(OAuth2Credential auth, String channelId, String redemptionId, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus) -
updateRedemptionStatuses
public CommandUpdateCustomRedemptionStatuses updateRedemptionStatuses(OAuth2Credential auth, String channelId, List<String> redemptionIds, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus oldStatus, com.github.twitch4j.graphql.internal.type.CommunityPointsCustomRewardRedemptionStatus newStatus) -
acceptFriendRequest
-
rejectFriendRequest
-
fetchLastBroadcast
public CommandFetchLastBroadcast fetchLastBroadcast(OAuth2Credential auth, String userId, String userLogin) -
createModComment
public CommandCreateModComment createModComment(OAuth2Credential auth, String channelId, String targetId, String text) -
fetchModComments
public CommandFetchModComments fetchModComments(OAuth2Credential auth, String channelId, String targetId, String after) -
fetchMods
public CommandFetchMods fetchMods(OAuth2Credential auth, String channelLogin, String after, Integer limit) -
archivePoll
-
createPoll
public CommandCreatePoll createPoll(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePollInput input) -
fetchPoll
-
terminatePoll
-
cancelPrediction
-
createPrediction
public CommandCreatePrediction createPrediction(OAuth2Credential auth, com.github.twitch4j.graphql.internal.type.CreatePredictionEventInput input) -
fetchActivePredictions
public CommandFetchActivePredictions fetchActivePredictions(OAuth2Credential auth, String channelId) -
fetchLockedPredictions
public CommandFetchLockedPredictions fetchLockedPredictions(OAuth2Credential auth, String channelId) -
fetchPrediction
-
lockPrediction
-
resolvePrediction
public CommandResolvePrediction resolvePrediction(OAuth2Credential auth, String predictionEventId, String outcomeId) -
fetchSquadStream
-
approveUnbanRequest
public CommandApproveUnbanRequest approveUnbanRequest(OAuth2Credential auth, String id, String message) -
bulkApproveUnbanRequest
public CommandBulkApproveUnbanRequest bulkApproveUnbanRequest(OAuth2Credential auth, List<String> ids) -
bulkDenyUnbanRequest
-
denyUnbanRequest
-
fetchUnbanRequests
public CommandFetchUnbanRequests fetchUnbanRequests(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(OAuth2Credential auth, String channelId, String targetUserLogin, String reason) Deprecated. -
fetchUser
-
fetchUserEmoteSets
-
fetchUserSubscriptions
public CommandFetchUserSubscriptions fetchUserSubscriptions(OAuth2Credential auth, String userId, Integer first, String after) -
fetchVideoComments
public CommandFetchVideoComments fetchVideoComments(OAuth2Credential auth, String channelId, String videoId, String id, String after, String before, Integer first, Integer last) -
fetchVips
public CommandFetchVips fetchVips(OAuth2Credential auth, String channelLogin, String after, Integer limit) -
followUser
public CommandFollowUser followUser(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
Unfollow a user- Parameters:
auth- CredentialtargetUserId- target user, that the user the auth token was provided for will follow- Returns:
- CommandUnfollowUser
-