Skip to content

Commit

Permalink
docs: warn upcoming deprecation of helix getFollowers (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Jan 5, 2023
1 parent 450be88 commit 01c3427
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
Expand Up @@ -2540,15 +2540,20 @@ HystrixCommand<Void> unblockUser(
/**
* Get Followers
* <p>
* Gets information on follow relationships between two Twitch users. Information returned is sorted in order, most recent follow first. This can return information like “who is lirik following,” “who is following lirik,” or “is user X following user Y.”
* Using user-token or app-token to increase rate limits.
* Gets information on follow relationships between two Twitch users.
* Information returned is sorted in order, most recent follow first.
* <p>
* WARNING: This method will soon be deprecated as Twitch is imposing new auth requirements.
* When to_id is specified, a (scoped) broadcaster or moderator oauth token will be required.
* When from_id is specified, a (scoped) user access token associated with from_id will be required.
*
* @param authToken User or App auth Token, for increased rate-limits
* @param fromId User ID. The request returns information about users who are being followed by the from_id user.
* @param toId User ID. The request returns information about users who are following the to_id user.
* @param after Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response.
* @param limit Maximum number of objects to return. Maximum: 100. Default: 20.
* @param authToken User or App access Token
* @param fromId User ID. The request returns information about users who are being followed by the from_id user.
* @param toId User ID. The request returns information about users who are following the to_id user.
* @param after Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response.
* @param limit Maximum number of objects to return. Maximum: 100. Default: 20.
* @return FollowList
* @see <a href="https://www.twitch.tv/videos/1604648673?t=0h36m30s">Early deprecation notice</a>
*/
@RequestLine("GET /users/follows?from_id={from_id}&to_id={to_id}&after={after}&first={first}")
@Headers("Authorization: Bearer {token}")
Expand Down
Expand Up @@ -41,6 +41,8 @@ public interface IClientHelper extends AutoCloseable {

/**
* Enable Follow Listener, without invoking a Helix API call
* <p>
* WARNING: This will eventually require defaultAuthToken to represent the channel (or a moderator), due to Twitch scope changes.
*
* @param channelId Channel Id
* @param channelName Channel Name
Expand Down Expand Up @@ -156,7 +158,9 @@ default void disableStreamEventListener(Iterable<String> channelNames) {
}

/**
* Follow Listener
* Enable Follow Listener for the given channel name
* <p>
* WARNING: This will eventually require defaultAuthToken to represent the channel (or a moderator), due to Twitch scope changes.
*
* @param channelName Channel Name
*/
Expand All @@ -177,6 +181,8 @@ default User enableFollowEventListener(String channelName) {

/**
* Enable Follow Listener for the given channel names
* <p>
* WARNING: This will eventually require defaultAuthToken to represent the channel (or a moderator), due to Twitch scope changes.
*
* @param channelNames the channel names to be added
*/
Expand Down

0 comments on commit 01c3427

Please sign in to comment.