⚠️ MOVED TO OpenFn/adaptors! ⚠️
N.B.: New versions are available at: https://github.com/OpenFn/adaptors/tree/main/packages/kobotoolbox
Language Pack for building expressions and operations to interact with the Kobotoolbox API.
{
"baseURL": "https://kf.kobotoolbox.org",
"username": "mamadou@openfn.org",
"password": "supersecret",
"apiVersion": "v2"
}
getForms({}, state => {
console.log(state.data);
return state;
});
A query can be used to filter results.
getSubmissions(
{ formId: 'aXecHjmbATuF6iGFmvBLBX', query: { end: { $gte: '2020-11-20' } } },
state => {
console.log(state.data);
return state;
}
);
Clone the repo, run npm install
.
Run tests using npm run test
or npm run test:watch
Build the project using make
.