User - Follow
Description
Follow a user on twitch (and turn of notifications if desired).
danger
This mutation no longer works, and can risk your account getting banned.
Method Definition
Required Parameters
Name | Type | Description |
---|---|---|
authToken | string | User Auth Token |
targetUserId | number | Target User Id |
notification | boolean | Enable notifications? |
Optional Parameters
None
Code-Snippets
follow a user (without notifications)
- Java
- Kotlin
- Groovy
twitchClient.getGraphQL().followUser(credential, 24943033l, false).execute();
twitchClient.graphQL.followUser(credential, 24943033l, false).execute()
twitchClient.graphQL.followUser(credential, 24943033l, false).execute()
follow a user (with notifications)
- Java
- Kotlin
- Groovy
twitchClient.getGraphQL().followUser(credential, 24943033l, true).execute();
twitchClient.graphQL.followUser(credential, 24943033l, true).execute()
twitchClient.graphQL.followUser(credential, 24943033l, true).execute()