https://github.com/thepeerstack/node-sdk
Thepeer's official node sdk
https://github.com/thepeerstack/node-sdk
backend javascript nodejs packages
Last synced: 2 months ago
JSON representation
Thepeer's official node sdk
- Host: GitHub
- URL: https://github.com/thepeerstack/node-sdk
- Owner: thepeerstack
- License: apache-2.0
- Created: 2021-05-24T22:00:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T22:51:31.000Z (about 3 years ago)
- Last Synced: 2025-10-24T21:25:27.089Z (5 months ago)
- Topics: backend, javascript, nodejs, packages
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/thepeer-node
- Size: 45.9 KB
- Stars: 23
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thepeer node
## Installation
```bash
npm i thepeer-node
```
## Usage
```js
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
* 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](https://docs.thepeer.co) for more information.