Overview
Can be accessed using client.kraken.streams on an ApiClient instance.
Example
const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const stream = await api.kraken.streams.getStreamByChannel('125328655');
Methods
getAllLiveStreams(page, limit)
asyncRetrieves a list of all live streams.
| Parameter | Type | Description |
|---|---|---|
| page | number | The result page you want to retrieve. |
| limit | number | The number of results you want to retrieve. |
getAllStreams(page, limit)
asyncRetrieves a list of all streams.
| Parameter | Type | Description |
|---|---|---|
| page | number | The result page you want to retrieve. |
| limit | number | The number of results you want to retrieve. |
getFollowedStreams(type, page, limit)
asyncRetrieves a list of all streams on channels the currently authenticated user is following.
| Parameter | Type | Description |
|---|---|---|
| type | StreamType | Show only streams of a certain type. |
| page | number | The result page you want to retrieve. |
| limit | number | The number of results you want to retrieve. |
getStreamByChannel(channel)
asyncRetrieves the current stream on the given channel.
| Parameter | Type | Description |
|---|---|---|
| channel | UserIdResolvable |
getStreams(channels, game, languageCode, type, page, limit)
asyncRetrieves a list of streams.
| Parameter | Type | Description |
|---|---|---|
| channels | string | Array<string> | A channel ID or a list thereof. |
| game | string | Show only streams playing a certain game. |
| languageCode | string | Show only streams in a certain language. |
| type | StreamType | Show only streams of a certain type. |
| page | number | The result page you want to retrieve. |
| limit | number | The number of results you want to retrieve. |