Skip to content

faithfulojebiyi/node-sdk

 
 

Repository files navigation

Thepeer node

Installation

npm i thepeer-node

Usage

const userPayload = {
    name: 'Ila Rowe',
    identifier: '[email protected]',
    email: '[email protected]',
}

let user = thepeer.indexUser({ ...userPayload });

Available methods

  • validateSignature

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

    • accepts:
      • reference (string)
      • event (string)
    • returns: boolean
  • indexUser

    • accepts:
      • payload (object)
      • payload.name (string)
      • payload.identifier (string)
      • payload.email (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.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%