language-divoc
An OpenFn adaptor for building integration jobs for use with the
DIVOC API.
Documentation
sample configuration
{
"baseUrl": "https://divoc.sub.io",
"token": "some-super-long-token-shhhhhhhhhhh"
}
generate a DIVOC vaccine certificate
N.B., the body should contain all data required for the certificate, including
preEnrollmentCode with a unique identifier.
certify({
...stuff,
preEnrollmentCode: 'some-uuid',
});
Fetch the PDF for a generated DIVOC Certificate
N.B. the identifier should be the preEnrollmentCode sent when generating the
certificate.
getCertificate({
id: dataValue('preEnrollmentCode'),
});
Development
Clone the repo, run npm install
.
Run tests using npm run test
or npm run test:watch
Build the project using make
.