Skip to main content

Users - Get Extensions

Description

Gets a list of all extensions (both active and inactive) for a specified user, identified by a Bearer token.

Requires a user access token that includes the user:read:broadcast or user:edit:broadcast scope. To include inactive extensions, you must include the user:edit:broadcast scope.

Method Definition

@RequestLine("GET /users/extensions/list")
@Headers("Authorization: Bearer {token}")
HystrixCommand<ExtensionList> getUserExtensions(
@Param("token") String authToken
);

Required Parameters

NameTypeDescription
authTokenstringUser Access Token with the user:read:broadcast scope.

Optional Parameters

None

Code-Snippets

ExtensionList resultList = twitchClient.getHelix().getUserExtensions(accessToken).execute();

resultList.getExtensions().forEach(extension -> {
System.out.println(extension);
});