A utility wrapper for various tasks on Integrator.IO.
Add dependency in package.json or Install via command line
npm install ief-utils
package.json
{
...,
"ief-utils" : "0.0.1"
}
There are currently two methods available in the utils:
requestoption must have these values
Sample values :
integratios, connections, expoerts, imports, flows
Give id for the resource
This contains the JSON that you want to put/post to the resource.
Based on the above four paramteres the API will determine whether it is get, post or put call.The delete operation is not supported for now.
util = require('ief-utils')
util.integratorRestClient( requestOptions, function(err, response, body){
//do next processing
})