node-primetrust
v0.0.6
Published
Primetrust API NodeJS Client
Downloads
10
Maintainers
Readme
PrimeTrust API NodeJS Client
Node.js REST API wrapper library for PrimeTrust Financial Platform.
Quick Start
For full reference please see REFERENCE.md
Installation
npm install node-primetrustUsage
Client initialization
import { PrimeTrustAPIClient } from "node-primetrust";
const username = "";
const password = "";
const sandbox = false;
const client = new PrimeTrustAPIClient(
{ username, password, sandbox }
);Creating a User
const response = await client.CreateUser({
email: "[email protected]",
name: "Example Example",
password: "Password-Password",
});
console.log("User created. PrimeTrust ID: %s", response.id);