public ClipData CreateClip(string title, int duration = 30)
If null, will match the stream title at the time of creation.
30
Clip duration in seconds (min. 5, max 60).
Twitch.Common.Models.Api.ClipData
using System;
using Twitch.Common.Models.Api; //Needed for ClipData Type
public class CPHInline
{
public bool Execute()
{
//Create a 25 second clip titled "Example Title"
ClipData clip = CPH.CreateClip("Example Title", 25);
//Access created clip data
//Get clip creator name
string creatorName = clip.CreatorName;
//Get clip url
string url = clip.Url;
//Get clip game id
string gameId = clip.GameId;
return true;
}
}