import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.stream.delete("<id>");
// Handle the result
console.log(result);
}
run();
复制
询问AI
{
"errors": [
[
"id not provided",
"Account not found"
]
]
}
Streams
删除流
删除直播流
DELETE
/
stream
/
{id}
TypeScript
复制
询问AI
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.stream.delete("<id>");
// Handle the result
console.log(result);
}
run();
复制
询问AI
{
"errors": [
[
"id not provided",
"Account not found"
]
]
}