1.0.8 • Published 5 years ago

zapi_nodejs v1.0.8

Weekly downloads
2
License
ISC
Repository
bitbucket
Last release
5 years ago

Usage

Install with npm

npm install zapi_nodejs

Include Library

var Client = require("zapi_nodejs");

Define ZAPI credentials

var BASE_URL = '<zfj cloud baseUrl goes here>'
var ACCESS_KEY = '<your accessKey goes here>'
var SECRET_KEY = '<your secretKey goes here>'
var ACCOUNT_ID = '<your ACCOUNT_ID goes here>'

Create Instance

 var JwtClient = new Client(BASE_URL, ACCESS_KEY, SECRET_KEY, ACCOUNT_ID);

To Create API Specific JWT Token.

  var METHOD = '<api method goes here>'
  var API_URI = '<api uri goes here>'
  var JWT_EXPIRE = <expiration time(in ms) goes here>
  
  var token = JwtClient.generateJWT(METHOD, API_URI, JWT_EXPIRE);
  
  console.log(token);
1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago