@plurall/sdk

1.0.13 • Public • Published

Plurall SDK

Software Developer Kit - Node JS - Plurall

Table of Contents


Install

yarn add @plurall/sdk

Plurall Integration

ThirdParty

Preparing environment

These are all available environment variables:

  • PLURALL_ENV: Environment to make the request (staging|production) - default staging
  • PLURALL_TIMEOUT: Time to wait before timeout (ms) - default 20000
  • DEBUG: Enable / disable debug mode (true|false) - default false

How to get user data?

import { ThirdParty } from '@plurall/sdk/Integration';
import { User } from '@plurall/sdk/Integration/models';

const { PLURALL_SECRET } = process.env;
try {
    const hash = ThirdParty.encryptToken(token, PLURALL_SECRET);

    const user: User = await ThirdParty.getUser({ app: "nome do app", hash });
} catch (error) {
    console.error(error)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @plurall/sdk

Weekly Downloads

1

Version

1.0.13

License

MIT

Unpacked Size

24.1 kB

Total Files

51

Last publish

Collaborators

  • rafael.teixeira.somos
  • williambraz
  • rcolonese.somos
  • plurall-dev
  • keppelen