Skip to content

Collection of basic utilities for doing various operations on Integrator.io

Notifications You must be signed in to change notification settings

gupta-tarun/ief-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Collection of basic utilities for doing various operations on Integrator.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published