@qbraid-core/base
Version:
Core functionality for interacting with qBraid Cloud Services.
48 lines (29 loc) • 1.47 kB
Markdown
<img align="right" width="100" alt="qbraid" src="https://qbraid-static.s3.amazonaws.com/logos/qbraid.png">
[![Stable][preview-stability]](https://qbraid.github.io/qbraid-core-js/#launch-stages)
[](https://npm.im/@qbraid-core/base)
Base API client used for authentication, requests, and other core functionality for interacting with qBraid Cloud Services.
```bash
npm install @qbraid-core/base
```
```typescript
import { QbraidSessionV1 } from '@qbraid-core/base';
const session = new QbraidSessionV1('your-api-key');
// The session client is ready to use immediately
console.log('Session initialized:', session.client !== null);
```
```typescript
import { QbraidClient } from '@qbraid-core/base';
const client = new QbraidClient();
const user = await client.getUser();
console.log(`email: ${user.email}`, `role: ${user.role}`);
```
This software is proprietary and subject to the terms of the [qBraid Commercial Software License](https://qbraid.github.io/qbraid-core-js/#license).
[]: https://img.shields.io/badge/stability-stable-green
[]: https://img.shields.io/badge/stability-preview-orange
[]: https://img.shields.io/badge/stability-deprecated-red