@exabase/sdk
v0.0.1
Published
Client library for Exabase API
Readme
@exabase/sdk
A TypeScript SDK client for the api.exabase.so API.
Usage
First, install the SDK from npm.
npm install @exabase/sdk --saveNext, try it out.
import {
Exabase,
} from '@exabase/sdk';
async function example() {
console.log('🚀 Testing @exabase/sdk SDK...');
const api = new Exabase({ apiKey: 'YOUR_API_KEY' });
const body = {
...
} satisfies CreateBookmarkOperationRequest;
try {
const data = await api.bookmarks.create(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Select a specific delegated workspace
import {
Exabase,
} from '@exabase/sdk';
// Provide workspace id in class constructor
const api = new Exabase({apiKey: 'YOUR_API_KEY', workspaceId: `xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`});Documentation
https://docs.exabase.so/api-reference
Authorization
ApiKey
- Type: API key
- API key parameter name:
X-Api-Key - Location: HTTP header
