⚠️ MOVED TO OpenFn/adaptors! ⚠️
N.B.: New versions are available at: https://github.com/OpenFn/adaptors/tree/main/packages/openfn
Adaptor for building expressions and operations to interact with the OpenFn API.
request({
method: 'get',
path: 'jobs',
params: {
project_id: 490,
},
});
request(
{
method: 'post',
path: 'jobs',
data: {
trigger_id: 1,
expression: 'steps()',
},
},
state => {
console.log('cool callback!');
return state;
}
);
{
"host": "https://www.openfn.org",
"username": "someone@ngo.org",
"password": "supersecret",
"projectId": "ID"
}
Clone the repo, run npm install
.
Run tests using npm run test
or npm run test:watch
Build the project using make
.
To build the docs for this repo, run ./node_modules/.bin/jsdoc --readme ./README.md ./lib -d docs
.