|
| Games (IApiSettings settings, IRateLimiter rateLimiter, IHttpCallHandler http) |
|
Task< GetGamesResponse > | GetGamesAsync (List< string > gameIds=null, List< string > gameNames=null, string accessToken=null) |
| Gets game information by game ID or name. More...
|
|
Task< GetTopGamesResponse > | GetTopGamesAsync (string before=null, string after=null, int first=20, string accessToken=null) |
| Gets games sorted by number of current viewers on Twitch, most popular first. More...
|
|
| ApiBase (IApiSettings settings, IRateLimiter rateLimiter, IHttpCallHandler http) |
|
async ValueTask< string > | GetAccessTokenAsync (string accessToken=null) |
|
|
async Task< string > | TwitchGetAsync (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchGetGenericAsync< T > (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPatchGenericAsync< T > (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< string > | TwitchPatchAsync (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< KeyValuePair< int, string > > | TwitchDeleteAsync (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPostGenericAsync< T > (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPostGenericModelAsync< T > (string resource, ApiVersion api, RequestModel model, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchDeleteGenericAsync< T > (string resource, ApiVersion api, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< T > | TwitchPutGenericAsync< T > (string resource, ApiVersion api, string payload=null, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< string > | TwitchPutAsync (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
async Task< KeyValuePair< int, string > > | TwitchPostAsync (string resource, ApiVersion api, string payload, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, string clientId=null, string customBase=null) |
|
Task | PutBytesAsync (string url, byte[] payload) |
|
async Task< T > | GetGenericAsync< T > (string url, List< KeyValuePair< string, string > > getParams=null, string accessToken=null, ApiVersion api=ApiVersion.Helix, string clientId=null) |
|
readonly IApiSettings | Settings |
|
Task< GetGamesResponse > TwitchLib.Api.Helix.Games.GetGamesAsync |
( |
List< string > |
gameIds = null , |
|
|
List< string > |
gameNames = null , |
|
|
string |
accessToken = null |
|
) |
| |
Gets game information by game ID or name.
For a query to be valid, name and/or id must be specified.
- Parameters
-
gameIds | List of Game IDs. At most 100 id values can be specified. |
gameNames | List of Game names. |
The name must be an exact match. For example, “Pokemon” will not return a list of Pokemon games; instead, query any specific Pokemon games in which you are interested.
At most 100 name values can be specified.
- Parameters
-
accessToken | optional access token to override the use of the stored one in the TwitchAPI instance |
- Returns
- Exceptions
-