I would like to make a bot that makes clips of the best moments of the game, but in 5v it is not available. Why is this removed?
It was created as a helix end point
It has never been a v5 end point
v5 is deprecated, and should not be used if possible
When I`m trying to create a clip
What is the URL you are trying to call?
This example
I didn’t ask what the docs say
I asked to see the URL you are calling.
Or the code you are using.
There is nothing in here that attempts to create a clip
I see some oAuth stuff and some code fetching some details about a clip.
There is no create a clip call
However this call to get the clips details:
try {
const result = await axios.get('https://api.twitch.tv/kraken/clips/AmazonianEncouragingLyrebirdAllenHuhu', {
headers: {'Client-ID': TWITCH_CLIENT_ID, Authorization: bearer}
})
console.log(result.data)
} catch(err) {
console.log(err)
}
Is missing a header
try {
const result = await axios.get('https://api.twitch.tv/kraken/clips/AmazonianEncouragingLyrebirdAllenHuhu', {
headers: {
'Client-ID': TWITCH_CLIENT_ID,
Authorization: bearer,
'Accept': 'application/vnd.twitchtv.v5+json'
}
})
console.log(result.data)
} catch(err) {
console.log(err)
}
And
OAuth2Strategy.prototype.userProfile = function(accessToken, done) {
var options = {
url: 'https://api.twitch.tv/helix/users',
method: 'GET',
headers: {
'Client-ID': TWITCH_CLIENT_ID,
'Accept': 'application/vnd.twitchtv.v5+json',
'Authorization': 'Bearer ' + accessToken
Does not need the Accept header as it’s a call to Helix
The URL is
https://api.twitch.tv/helix/clips?broadcaster_id=123
And your POST to it
You tried to post to
https://api.twitch.tv/Pestily/clips?broadcaster_id=123
Is it possible to change the length of the clip with API?
No
See also: