Class TwitchGraphQL

java.lang.Object
com.github.twitch4j.graphql.TwitchGraphQL

@Unofficial public class TwitchGraphQL extends Object
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 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 Url
      userAgent - User Agent
      eventManager - Event Manager
      clientId - Client Id
      defaultToken - Default Token
      proxyConfig - Proxy Config
      batchingEnabled - Query Batching
      timeout - Query Timeout
      additionalHeaders - 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

      public CommandFetchVideoComments fetchVideoComments(com.github.philippheuer.credentialmanager.domain.OAuth2Credential auth, String channelId, String videoId, String id, String after, String before, Integer first, Integer last)
    • 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 - Credential
      targetUserId - target user, that the user the auth token was provided for will follow
      goLiveNotification - 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 - Credential
      targetUserId - target user, that the user the auth token was provided for will follow
      Returns:
      CommandUnfollowUser