@icanbwell/bwell-sdk-ts
v1.3.0
Published
b.well TypeScript SDK
Downloads
509
Keywords
Readme
BWell SDK Typescript
Description
The b.well TypeScript SDK provides a simple, type-safe interface to the FHIR data stored and maintained by b.well, as well as manage users, configure device notifications and mark them read, set up data connections, and search for providers or connections. Please see the documentation for details.
Installation
npm i @icanbwell/bwell-sdk-ts
Example
import { BWellSDK }
const sdk = new BWellSDK({
clientKey: "YOUR_CLIENT_KEY",
clientSecret: "YOUR_CLIENT_SECRET",
});
await sdk.initialize();
await sdk.authenticate({
token: "YOUR_TOKEN",
});
const healthSummaryResponse = sdk.health.getHealthSummary();
const healthSummaryData = healthSummaryResponse.data;