GetClipsForGame

Fetch clips for a specific game on Twitch

Signature

public List<ClipData> GetClipsForGame(int gameId, int count, Boolean? isFeatured);
public List<ClipData> GetClipsForGame(int gameId, DateTime start, DateTime end, Boolean? isFeatured);
public List<ClipData> GetClipsForGame(int gameId, DateTime start, DateTime end, int count, Boolean? isFeatured);
public List<ClipData> GetClipsForGame(int gameId, TimeSpan duration, Boolean? isFeatured);
public List<ClipData> GetClipsForGame(int gameId, TimeSpan duration, int count, Boolean? isFeatured);

Parameters

gameId
int required

No description provided.

isFeatured
Boolean?
Default:
true

Toggle featured clips behavior

If the parameter left empty or null, all clips will be retrieved, including both those flagged as featured, and those not flagged.

If isFeatured is set to true, then only clips that have is_featured set will be retrieved.

If isFeatured is set to false, then only clips that do not have is_featured set will be retrieved.

count
int

The number of clips to fetch

A maximum of 1,000 clips can be returned
start
DateTime

No description provided.

end
DateTime

No description provided.

duration
System.TimeSpan

No description provided.

Return Type

List<Twitch.Common.Models.Api.ClipData>

Example

CPH.GetClipsForGame(gameId);
CPH.GetClipsForGame(gameId, isFeatured);