# zapi_nodejs

> ZAPI NodeJS Client with jwt generator.

Latest version **1.0.8** (published 2019-02-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install zapi_nodejs
pnpm add zapi_nodejs
yarn add zapi_nodejs
bun add zapi_nodejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2019-02-10 |
| First published | 2017-01-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Masudur Rahman |
| Maintainers | masud.java |

## Links

- npm: https://www.npmjs.com/package/zapi_nodejs
- Repository: https://bitbucket.org/zfjdeveloper/zapi_nodejs
- Homepage: https://bitbucket.org/zfjdeveloper/zapi_nodejs#readme
- Issues: https://bitbucket.org/zfjdeveloper/zapi_nodejs/issues
- npm.io page: https://npm.io/package/zapi_nodejs

## Dependencies (2)

- [jshashes](https://npm.io/package/jshashes.md) 1.0.7
- [atlassian-jwt](https://npm.io/package/atlassian-jwt.md) 1.0.1

## Recent versions

- 1.0.8 (latest) — 2019-02-10
- 1.0.7 — 2019-02-10
- 1.0.6 — 2018-10-17
- 1.0.5 — 2017-02-23
- 1.0.3 — 2017-01-19

## README

## 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);

---
_Source: https://npm.io/package/zapi_nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
