Skip to content

thepeerstack/node-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thepeer node

Installation

npm i thepeer-node

Usage

const thepeer = new Thepeer(secretKey)

let user = thepeer.indexUser("Thor Odin", "thor", "[email protected]");

Available methods

  • validateSignature

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

    • accepts:
      • reference (string)
      • event (string)
    • returns: boolean
  • 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:
      • link_id (string)
    • returns: object
  • chargeLink

    • accepts:
      • link_id (string)
      • amount (integer)
    • returns: object
  • getBusinesses

    • accepts:
      • channel (string)
    • returns: object

Extra

Refer to the documentation for more information.