JSPM

@iy4u/tally

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q47360F
  • License MIT

Tally API wrapper for nodejs backends

Package Exports

  • @iy4u/tally

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@iy4u/tally) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tally-node

The Tally Node library provides convenient access to the Tally API from applications written in server-side JavaScript.

Documentation

See the [Video Demonstration] covering how to use the library.

Requirements

Node 12, 14 or higher.

Installation

Install the package with:

npm install @iy4u/tally --save
# or
yarn add @iy4u/tally

Usage

The package needs to be configured with your application's name and secret key, which is available in the [Tally Applications][applications].

const Tally = require('@iy4u/tally');

const secretKey = process.env.SECRET_KEY
const appName = process.env.APP_NAME

const tally = new Tally(secretKey,{appName})

// To get all records of assets a customer with peopleId = '60bfe4280a875e3711410553' owes

const allMyFoils = async () => {

  try {
    
    await this.tally.start();

    const params = { 
    
      query:{
            ownerID : '60bfe4280a875e3711410553'
        }
        
    }
  
    return this.tally.foils.find(params);

  } catch (error) {
  
    console.log(error);
  
  }

}

You can find a full FeathersJs server example in tally-samples.