sirrobot01 / node-sdk

Thepeer's official node sdk

Home Page:https://www.npmjs.com/package/thepeer-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • validateSignature

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

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

    • accepts:
      • receipt_id (string)
      • event (string)
    • 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
  • authorizeDirectCharge

    • accepts:
      • reference (string)
      • event (string)
    • returns: object

Extra

Refer to the documentation for more information.

About

Thepeer's official node sdk

https://www.npmjs.com/package/thepeer-node

License:Apache License 2.0


Languages

Language:JavaScript 100.0%