ief-utils

0.2.6 • Public • Published

ief-utils

A utility wrapper for various tasks on Integrator.IO.

NPM

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 
})  

Readme

Keywords

none

Package Sidebar

Install

npm i ief-utils

Weekly Downloads

2

Version

0.2.6

License

none

Last publish

Collaborators

  • abhijais2
  • gupta-tarun