TwitchApi.Clips.CreateClip (TwitchApi v0.1.2) View Source
⛔ This module is autogenerated please do not modify manually.
Example request from twitch api docs:
descriptions:
requests:
curl -X POST 'https://api.twitch.tv/helix/clips?broadcaster_id=44322889'
-H'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y'
-H'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'
Example response from twitch api docs:
descriptions:
responses:
{"data":[{"id":"FiveWordsForClipSlug","edit_url":"http://clips.twitch.tv/FiveWordsForClipSlug/edit"}]}
Link to this section Summary
Types
ID of the stream from which the clip will be made.
If false, the clip is captured from the live stream when the API is called; otherwise, a delay is added before the clip is captured (to account for the brief delay between the broadcaster’s stream and the viewer’s experience of that stream). Default: false.
Map containing the user needed information for the fetch of the required user OAuth access token. You will be able to choose from one way or the other for fetching previously OAuth access tokens. :user_id field contains the user ID from twitch, e.g. 61425548 or "61425548" :user_name field constains the user name from twitch, e.g. "hiimkamiyuzu"
Functions
Description:
Creates a clip programmatically. This returns both an ID and an edit URL for the new clip.
Link to this section Types
Specs
broadcaster_id() :: %{broadcaster_id: String.t()}
ID of the stream from which the clip will be made.
Specs
has_delay() :: %{has_delay: boolean()}
If false, the clip is captured from the live stream when the API is called; otherwise, a delay is added before the clip is captured (to account for the brief delay between the broadcaster’s stream and the viewer’s experience of that stream). Default: false.
Specs
Map containing the user needed information for the fetch of the required user OAuth access token. You will be able to choose from one way or the other for fetching previously OAuth access tokens. :user_id field contains the user ID from twitch, e.g. 61425548 or "61425548" :user_name field constains the user name from twitch, e.g. "hiimkamiyuzu"
Link to this section Functions
Specs
call(broadcaster_id() | has_delay(), user_info()) :: {:ok, Finch.Response.t()} | {:error, Exception.t()}
Description:
Creates a clip programmatically. This returns both an ID and an edit URL for the new clip.
Required authentication:
OAuth token required Required scope: clips:edit