ief-utils
v0.2.6
Published
Integrator Extension Framework Utilities
Downloads
10
Readme
ief-utils
A utility wrapper for various tasks on Integrator.IO.
Install
Add dependency in package.json or Install via command line
npm install ief-utils
package.json
{
...,
"ief-utils" : "0.0.1"
}
API
There are currently two methods available in the utils:
integratorRestClient( requestOptions, callback)
requestOptions
requestoption must have these values
1. bearerToken : [Your Token from IntegratorIO account]
2. resourcetype :
Sample values :
integratios, connections, expoerts, imports, flows
3. id
Give id for the resource
4. data
This contains the JSON that you want to put/post to the resource.
Use
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
})