import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.accessControl.create();
// Handle the result
console.log(result);
}
run();{
"publicKey": "<string>",
"id": "78df0075-b5f3-4683-a618-1086faca35dc",
"name": "key1",
"userId": "78df0075-b5f3-4683-a618-1086faca35dc",
"createdAt": 1587667174725,
"lastSeen": 1587667174725,
"disabled": false,
"projectId": "aac12556-4d65-4d34-9fb"
}Livepeer point d’extrémité de l’API Studio
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.accessControl.create();
// Handle the result
console.log(result);
}
run();{
"publicKey": "<string>",
"id": "78df0075-b5f3-4683-a618-1086faca35dc",
"name": "key1",
"userId": "78df0075-b5f3-4683-a618-1086faca35dc",
"createdAt": 1587667174725,
"lastSeen": 1587667174725,
"disabled": false,
"projectId": "aac12556-4d65-4d34-9fb"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Success
"78df0075-b5f3-4683-a618-1086faca35dc"
Name of the signing key
"key1"
"78df0075-b5f3-4683-a618-1086faca35dc"
Timestamp (in milliseconds) at which the signing-key was created
1587667174725
Timestamp (in milliseconds) at which the signing-key was last used
1587667174725
Disable the signing key to allow rotation safely
false
The ID of the project
"aac12556-4d65-4d34-9fb"
Cette page vous a-t-elle été utile ?