2.0.0-beta.11 • Published 10 months ago

synapsenode v2.0.0-beta.11

Weekly downloads
1,190
License
MIT
Repository
-
Last release
10 months ago

SynapseNode

npm status Node.js Client Library for SynapseFI REST V3.1 API

Code Examples

Please refer to samples.md and our API documentation for examples.

Setup

We are proud to release a new major version (2.0.0) in beta, written in typescript to improve developer experience. These changes were designed to be backwards compatible. Though this is a major version upgrade, there should be no impact to upgrading. We recommend test these in a sandbox environment before deploying to a live production environment.

to try out the newest version:

npm install synapsenode@latest

Update

To update to the most recent version of synapsenode

npm update synapsenode

Initialization

Require and configure dotenv:

require('dotenv').config()

Create a .env file at the root directory and add the following variables to it:

CLIENT_ID=<YOUR_CLIENT_ID>
CLIENT_SECRET=<YOUR_CLIENT_SECRET>
FINGERPRINT=<YOUR_FINGERPRINT>

Initialize new Client:

const Synapse = require('synapsenode');
const Client = Synapse.Client;

const client = new Client({
  client_id: process.env.CLIENT_ID,
  client_secret: process.env.CLIENT_SECRET,
  fingerprint: process.env.FINGERPRINT,
  ip_address: '<ip_address>',
  // isProduction boolean determines if production (true) or sandbox (false) endpoint is used
  isProduction: false
});

Testing

Run the following command from the root package directory after the .env file is set up and '<OBJ_ID>' values are replaced in the test files:

npm test

License

MIT License

2.0.0-beta.11

10 months ago

2.0.0-beta

1 year ago

2.0.0-beta.1

1 year ago

1.2.21

2 years ago

1.2.20

2 years ago

1.2.19

2 years ago

1.2.18

3 years ago

1.2.17

3 years ago

1.2.16

3 years ago

1.2.15

3 years ago

1.2.14

3 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.11

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.9

4 years ago

1.2.10

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago