0.0.7 • Published 20 days ago

@sai_tarun/pb_connect v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
20 days ago

PingBase Connect

Embed PingBase Connect into your Platform

Quick Start Guide

import PingBase from '@pingbase/connect';

PingBase("initOrg", 'ORG_TOKEN');
PingBase("initUser", 'email', 'firstName', 'lastName', 'trialType')

Methods and their uses

  • initOrg: Initializes the organization for connection. Params: - orgKey: string: A unique token given at the time of organization onboarding. - options: object (Optional): Additional options to customize. - autoConnect: boolean = true (Optional): Specifies whether to connect the user directly when the initUser command is called. If set to false, you need to connect the user explicitly using PingBase("connect").
  • initUser: Initializes the user for connection. This should be called upon user login. Params: - email: string: Email of the user - firstName: string: First Name of the user - lastName: string: Last Name of the user - trialType: string | 'other': Trial type of the user. If the user is a PAID user, send trialType as other. Otherwise, send the name of the trial like Free Trial, Freemium, etc. - customMetadata: object (Optional): Any other data of the end user. - role: string (Optional): Role of the user in their company. - company (Optional): Company of the user.
  • connect: Connects the user to PingBase. This is used only when autoConnect is set to false.
  • disconnect: Disconnects the user from PingBase. Can be used to hide the widget upon logout.
0.0.7

20 days ago

0.0.6

20 days ago

0.0.3

25 days ago

0.0.5

25 days ago

0.0.4

25 days ago

0.0.2

25 days ago

0.0.1

3 months ago