BlushyFace.Twitch
BlushyFace.Twitch.API.Helix.Endpoints.Games Class Reference

Implemented More...

Public Member Functions

 Games (HttpHandler httpHandler)
 
async Task< GamesTopResponse > GetTopGamesAsync (List< KeyValuePair< string, string >> parameters=null)
 
async Task< GamesResponse > GetGamesAsync (List< KeyValuePair< string, string >> parameters=null)
 

Detailed Description

Implemented

Member Function Documentation

◆ GetGamesAsync()

async Task<GamesResponse> BlushyFace.Twitch.API.Helix.Endpoints.Games.GetGamesAsync ( List< KeyValuePair< string, string >>  parameters = null)
inline

Gets game information by game ID or name.

The response has a JSON payload with a data field containing an array of games elements.

Required Query String Parameters: id, name

For a query to be valid, name and/or id must be specified.

More info: https://dev.twitch.tv/docs/api/reference#get-games

Parameters
parameters
Returns

◆ GetTopGamesAsync()

async Task<GamesTopResponse> BlushyFace.Twitch.API.Helix.Endpoints.Games.GetTopGamesAsync ( List< KeyValuePair< string, string >>  parameters = null)
inline

Gets games sorted by number of current viewers on Twitch, most popular first.

The response has a JSON payload with a data field containing an array of games information elements and a pagination field containing information required to query for more streams.

More info: https://dev.twitch.tv/docs/api/reference#get-top-games

Parameters
parameters
Returns