import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.multistream.get("<id>");
// Handle the result
console.log(result);
}
run();{
"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7",
"name": "<string>",
"userId": "66E2161C-7670-4D05-B71D-DA2D6979556F",
"disabled": true,
"createdAt": 1587667174725
}Livepeer Studio API 端点
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.multistream.get("<id>");
// Handle the result
console.log(result);
}
run();{
"id": "09F8B46C-61A0-4254-9875-F71F4C605BC7",
"name": "<string>",
"userId": "66E2161C-7670-4D05-B71D-DA2D6979556F",
"disabled": true,
"createdAt": 1587667174725
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the multistream target
Success
"09F8B46C-61A0-4254-9875-F71F4C605BC7"
"66E2161C-7670-4D05-B71D-DA2D6979556F"
If true then this multistream target will not be used for pushing even if it is configured in a stream object.
Timestamp (in milliseconds) at which multistream target object was created
1587667174725
此页面对您有帮助吗?