import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.accessControl.getAll();
// Handle the result
console.log(result);
}
run();
[
{
"id": "78df0075-b5f3-4683-a618-1086faca35dc",
"name": "key1",
"userId": "78df0075-b5f3-4683-a618-1086faca35dc",
"createdAt": 1587667174725,
"lastSeen": 1587667174725,
"publicKey": "<string>",
"disabled": false,
"projectId": "aac12556-4d65-4d34-9fb"
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success
The response is of type object[]
.
Was this page helpful?
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.accessControl.getAll();
// Handle the result
console.log(result);
}
run();
[
{
"id": "78df0075-b5f3-4683-a618-1086faca35dc",
"name": "key1",
"userId": "78df0075-b5f3-4683-a618-1086faca35dc",
"createdAt": 1587667174725,
"lastSeen": 1587667174725,
"publicKey": "<string>",
"disabled": false,
"projectId": "aac12556-4d65-4d34-9fb"
}
]
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.accessControl.getAll();
// Handle the result
console.log(result);
}
run();
[
{
"id": "78df0075-b5f3-4683-a618-1086faca35dc",
"name": "key1",
"userId": "78df0075-b5f3-4683-a618-1086faca35dc",
"createdAt": 1587667174725,
"lastSeen": 1587667174725,
"publicKey": "<string>",
"disabled": false,
"projectId": "aac12556-4d65-4d34-9fb"
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success
The response is of type object[]
.
Was this page helpful?
import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.accessControl.getAll();
// Handle the result
console.log(result);
}
run();
[
{
"id": "78df0075-b5f3-4683-a618-1086faca35dc",
"name": "key1",
"userId": "78df0075-b5f3-4683-a618-1086faca35dc",
"createdAt": 1587667174725,
"lastSeen": 1587667174725,
"publicKey": "<string>",
"disabled": false,
"projectId": "aac12556-4d65-4d34-9fb"
}
]