1.3.15 • Published 4 years ago

accellion-vendor-eapi v1.3.15

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Getting Started

First, you need to use Accellion NPM Registry to start using the module, you can also visit our module page here.

NPM module

$ npm install --save accellion-vendor-eapi
import { ACVendorApi } from 'accellion-vendor-eapi';

var api = new ACVendorApi({
  vendorToken: 'sQnvRo+44qWwYo3DTI+Pwms5+95jm39swY5JIYR/vTEFFxUJv0xSkuH4/VYP/J2G',    // kiteworks-client's token     
  client: 'imanage'                         // registered client's name
});

api.sendMail(sendForm);
import { ACVendorApi } from 'accellion-vendor-eapi';

ACVendorApi.authenticate(webToken, client)    // webToken: get from cookies, client: client's name registered on our system
  .then((data) => {
    const { vendorToken } = data;             // used vendorToken for the request.
    
    $vendorApi = new ACVendorApi({            // Example : you can create your VendorAPI here
      vendorToken,
      client
    });
  })
  .catch((error) => {
    // handling error
  });

How to Contribute

Visit our repo.

$ git clone git@sggitlab.acc.guru:reusable/accellion-vendor-eapi.git
$ cd accellion-vendor-eapi
$ npm install --registry https://npm.acc.guru

How to publish

We only publish our module to Accellion NPM Registry.

$ npm version [major | minor | patch]

$ npm publish

Running npm run build will compile source files to a distributable format (CommonJS, ES6 and UMD) ready to be published to NPM from the dist folder. See tools/build.js for more info.

How to Test

Run one, or a combination of the following commands to lint and test your code:

  • npm run lint — lint the source code with ESLint
  • npm test — run unit tests with Mocha
  • npm run test:watch — run unit tests with Mocha, and watch files for changes
  • npm run test:cover — run unit tests with code coverage by Istanbul
1.3.15

4 years ago