node-tw

1.0.3 • Public • Published

Node TrueWallet

This module provides an easy to use API for using with TrueWallet.

Quick Start

Installing
npm install node-tw --save
Creating new instance
const TrueWallet = require('node-tw')
const tw = new TrueWallet({
    email: 'email@example.com',
    password: 'example'
})
Logging in
tw.login()
Getting transactions history
tw.history()
    .then(console.log) // prints all transactions to the console
Getting transaction details
transaction.details()
    .then(console.log) // prints details to the console
Polling
tw.startPolling()
tw.on('transaction', doSomething) // Do something with the transaction
Examples

This project is not affiliated in any way with True Corp.

Readme

Keywords

none

Package Sidebar

Install

npm i node-tw

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • paphonb