healthharbor_dental_ts_client
v1.0.0
Published
An unofficial TypeScript client library for the Health Harbor Dental API, designed to facilitate seamless integration with dental data services.
Downloads
2
Readme
Health Harbor Dental Client
This project provides an unofficial TypeScript client library for interacting with the Health Harbor Dental API. It is designed to help developers integrate Health Harbor Dental services into their applications with ease.
Features
- Easy-to-use methods for fetching and creating dental inquiries.
- Integrated TypeScript typings for excellent developer experience and type safety.
- Configurable and ready for extension.
Getting Started
Prerequisites
- Node.js (v12 or later)
- npm (v6 or later) or yarn
Installation
To use this library in your project, run:
npm install healthharbor_dental_client
or with yarn:
yarn add healthharbor_dental_client
Usage
Here's a quick example to get you started:
import { HealthHarborDentalClient } from './client';
async function main() {
const client = new HealthHarborDentalClient({
baseURL: 'https://api.healthharbor.com',
authToken: 'your_auth_token_here'
});
try {
const inquiries = await client.getInquiries();
console.log(inquiries);
const newInquiryResponse = await client.createInquiry({
patientName: "John Doe",
dob: "1980-01-01",
memberId: "123456789",
npi: "987654321",
taxId: "123456789",
insurance: "CIGNA"
});
console.log(newInquiryResponse);
} catch (error) {
console.error('Error:', error);
}
}
main();
Development
To set up a local development environment for this library, follow these steps:
- Clone the repository:
git clone https://github.com/copyleftdev/healthharbor_dental_ts_client.git
- Navigate to the project directory:
cd healthharbor_dental_client
- Install dependencies:
npm install
- Build the project:
npm run build
Testing
Run the automated tests for this project with:
npm test