npm.io
0.0.1 • Published 5 years ago

thepeer-node

Licence
ISC
Version
0.0.1
Deps
1
Size
25 kB
Vulns
23
Weekly
0
Stars
23

Thepeer node

Installation

npm i thepeer-node

Usage

const thepeer = new Thepeer(secretKey)

let user = thepeer.indexUser("Thor Odin", "thor", "thor@odin.com");
Available methods
  • validateSiganture

    • accepts:
      • request (object)
      • signature (object)
    • returns: boolean
  • getSendReceipt

    • accepts:
      • receipt_id (string)
    • returns: object
  • processSendReceipt

    • accepts:
      • receipt_id (string)
      • insufficient_funds (bool)
    • returns: object
  • indexUser

    • accepts:
      • name (string)
      • email (string)
      • identifier (string)
    • returns: object
  • updateUser

    • accepts:
      • reference (string)
      • identifier (string)
    • returns: object
  • deleteUser

    • accepts:
      • reference (string)
    • returns: boolean
  • getLink

    • accepts:
      • lind_id (string)
    • returns: object
  • chargeLink

    • accepts:
      • lind_id (string)
      • amount (integer)
    • returns: object
  • authorizaDirectCharge

    • accepts:
      • reference (string)
      • insufficient_funds (bool)
    • returns: object

Extra

Refer to the documentation for more information.