C# SDK
Install and start using the C# SDK.
Intro
The NexHealth API SDK provides access to the NexHealth API REST APIs.
The NexHealth Synchronizer API gives read and write access to the practice management and EHR systems of dental and medical practices: patients, appointments, availability, providers, insurance, billing and more, through one REST API. v3.0.0 and v20240412 are two names for the same API version; send either in the Nex-Api-Version header.
Installation
Add the SDK as a project reference into your solution:
dotnet add reference <path-to-sdk>/src/NexHealthApi/NexHealthApi.csprojThe project takes its build settings from the files around it, so reference it in place.
Quick Start
Dependency Injection
Register the client with IServiceCollection and resolve it from the container. The HttpClient is managed by IHttpClientFactory. Configure the client's behavior through NexHealthApiClientOptions.
services.AddNexHealthApiClient(options =>
{
options.Authorization = "YOUR_API_KEY";
options.Environment = ServerEnvironment.Production;
// TODO: configure more client options here
});Direct Instantiation
Create the client by passing an HttpClient you manage yourself. Configure the client's behavior through NexHealthApiClientOptions.
var httpClient = new HttpClient();
// TODO: configure more client options here
var options = new NexHealthApiClientOptions
{
Authorization = "YOUR_API_KEY",
Environment = ServerEnvironment.Production,
};
var client = new NexHealthApiClient(httpClient, options);