1,000 clips can be returnedpublic List<ClipData> GetAllClips(Boolean? isFeatured)
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.
List<Twitch.Common.Models.Api.ClipData>
using System;
using System.Collections.Generic;//Needed for List
using Twitch.Common.Models.Api; //Needed for ClipData Type
public class CPHInline
{
public bool Execute()
{
//Get List of featured clips
List<ClipData> clipList = CPH.GetAllClips(true);
//Go through clips and write info to logs
foreach(ClipData clip in clipList)
{
//Get id of current clip
string id = clip.Id;
//Get url of current clip
string url = clip.Url;
//Get title of current clip
string title = clip.Title;
//Get view count of current clip
int viewCount = clip.ViewCount;
CPH.LogInfo($"ViewCount:{viewCount},Title:{title}, Id:{id}, Url:{url}");
}
return true;
}
}