More Info
Software Development Kit
How to access the Medical API using our SDK
We’ve developed an SDK to help you get access to our API without the HTTP plumbing. It’s currently only available for Node-based applications (let us know what other languages you’d like to see it available on).
If you would like to generate your own SDK, you can use our OpenAPI specification to generate client libraries in any language that suits your project needs.
The SDK is available as an NPM package and you can access it here.
To install:
Initialize it like so:
Some examples of usage, once the API client is initialized:
The operations available follow the API specification, with this pattern:
GET /
endpoints are exposed aslist<EntityNameInPlural>()
GET /:id
endpoints are exposed asget<EntityName>()
POST /
endpoints are exposed ascreate<EntityName>()
PUT /:id
endpoints are exposed asupdate<EntityName>()
DELETE /:id
endpoints are exposed asremove<EntityName>()
The client source code contains only the exposed operations and is available here.