Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 938 Bytes

README.md

File metadata and controls

47 lines (30 loc) · 938 Bytes

Node Teller

Nodejs client for teller.io API

Installation

$ npm install node-teller

or, with yarn

$ yarn add node-teller

Usage

Go to https://teller.io/dashboard > Certificates > Create a new certificate.

Save certificate files certificate.pem and private_key.pem in project root.

Add .pem to .gitignore, to tell Git to ignore certificate files when you make a commit.

Use in your project:

import { TellerClient } from 'node-teller';

const teller = new TellerClient({
  certificatePath: "./certificate.pem",
  privateKeyPath: "./private_key.pem",
  // optional. You will most likely will need to pass it in each request
  accessToken: "your_access_token_from_teller_connect"
});

teller.identity.get().then((identity) => {
  console.log(identity);
})

Follow the teller.io docs for more information.

License

MIT