Users - Get Active Extensions
Description
Gets information about active extensions installed by a specified user, identified by a user ID or Bearer token.
To include extensions that you have under development, you must specify a user access token that includes the user:read:broadcast
or user:edit:broadcast
scope.
Method Definition
@RequestLine("GET /users/extensions?user_id={user_id}")
@Headers("Authorization: Bearer {token}")
HystrixCommand<ExtensionActiveList> getUserActiveExtensions(
@Param("token") String authToken,
@Param("user_id") String userId
);
Required Parameters
None
Optional Parameters
Name | Type | Description |
---|---|---|
token | string | User Auth Token with the user:read:broadcast or user:edit:broadcast scope. |
user_id | string | ID of the user whose installed extensions will be returned. |
Code-Snippets
print active extensions
- Java
- Kotlin
- Groovy
ExtensionActiveList resultList = twitchClient.getHelix().getUserActiveExtensions(testUtils.getCredential().getAccessToken(), twitchUserId).execute();
System.out.println(resultList.getData());
val resultList = twitchClient.helix.getUserActiveExtensions(testUtils.credential.accessToken, twitchUserId).execute()
println(resultList.`data`)
def resultList = twitchClient.helix.getUserActiveExtensions(testUtils.credential.accessToken, twitchUserId).execute()
System.out.println resultList.data