Skip to main content

cht Adaptor developer README.md

Source: https://github.com/OpenFn/adaptors/tree/main/packages/cht

language-cht

An OpenFn adaptor for building integration jobs for use with the cht API.

Documentation

View the docs site for full technical documentation.

Configuration

View the configuration-schema for required and optional configuration properties.

A example expression using the post function

post("/api/v1/people", {  
"name": "Hannah",
"phone": "+254712345678",
"type": "contact",
"contact_type": "patient", });

Development

Clone the adaptors monorepo. Follow the "Getting Started" guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To build only the docs run pnpm build docs.