get_top_games: Get top games

View source: R/games.R

get_top_gamesR Documentation

Get top games

Description

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

Usage

get_top_games(after = NULL, before = NULL, first = 20, clean_json = TRUE)

Arguments

after

A character. Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.

before

A character. Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.

first

A numeric. Maximum number of objects to return. Maximum: 100. Default: 20.

clean_json

A logical. If TRUE, clean and tidy the data. If FALSE, return the result of httr::content.

Value

A tibble data frame of top game data.

References

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

See Also

Other Games: get_games()

Examples

## Not run: 
library(twitchr)

twitch_auth()

top_games <- get_top_games()

## End(Not run)

KoderKow/twitchr documentation built on Aug. 11, 2022, 8:56 p.m.