0.1.1 • Published 6 years ago

pushpay v0.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Pushpay Node.js Client

Teamcity Status

an npm package for interacting with the Pushpay API

Usage

Prerequisites

This package uses async/await, so requires a node version > 7.6

Build a request

currently, only get payments and recurring gifts is implemented

const Pushpay = require('./src/app.js');
const pushpay = new Pushpay();

const start = moment().subtract(4, 'day').toDate()
const end = moment().toDate()
const data = await pushpay.getPayments(start, end)
console.info("data!", data);

to run the above example, you can run node example.js, just remember to set your environment variables.

Development

Install dependencies

npm i

Run tests (no passing tests yet)

npm test
# or, to run tests as you change files
npm test:watch

Environment Variables needed