1.0.5 • Published 1 year ago

gmpays v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

gmpays

gmpays Node.js Library

API docs here

Installation

$ npm i gmpays

Usage

import GM from 'gmpays'

const gm = new GM({
  project,
  hmacPrivateKey,

  // Optional. But to make checkouts must be specified
  rsaPrivateKey: Buffer
    .from(rsaPrivateKey, 'base64')
    .toString('utf-8')
})

await gm.getBalanceStatistics({
  currency: 'USD'
})

await gm.getDaysBalanceStatistics({
  currency: 'BTC',
  start: '2032-01-01',
  finish: '2032-12-31'
})

await gm.getExchangeRate({
  from: 'USD',
  to: 'BTC'
})

Examples

See more examples here

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

2 years ago