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
Name | Type | Description |
---|---|---|
authToken | string | User Access Token with the user:read:broadcast scope. |
Optional Parameters
None
Code-Snippets
print all extensions
- Java
- Kotlin
- Groovy
ExtensionList resultList = twitchClient.getHelix().getUserExtensions(accessToken).execute();
resultList.getExtensions().forEach(extension -> {
System.out.println(extension);
});
val resultList = twitchClient.helix.getUserExtensions(accessToken).execute()
resultList.extensions.forEach { extension ->
println(extension)
}
def resultList = twitchClient.helix.getUserExtensions(accessToken).execute()
resultList.extensions.each { extension ->
System.out.println extension
}