@openfn/language-kobotoolbox
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

Language KoboToolbox

Language Pack for building expressions and operations to interact with the [TEMPLATE] API.

Documentation

Configuration

View all the required and optional properties for state.configuration in the official configuration-schema definition.

Get the list of forms

getForms({}, state => {
  console.log(state.data);
  return state;
});

Get submissions for a specific form

A query can be used to filter results.

getSubmissions(
  { formId: 'aXecHjmbATuF6iGFmvBLBX', query: { end: { $gte: '2020-11-20' } } },
  state => {
    console.log(state.data);
    return state;
  }
);

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 just build the docs run pnpm build docs

/@openfn/language-kobotoolbox/

    Package Sidebar

    Install

    npm i @openfn/language-kobotoolbox

    Weekly Downloads

    8

    Version

    2.2.0

    License

    LGPLv3

    Unpacked Size

    72.4 kB

    Total Files

    10

    Last publish

    Collaborators

    • mtuchi
    • elias-ba
    • stuartc-openfn
    • taylordowns2000