tictop-ticket

1.0.19 • Public • Published

Tictop Ticket

Tictop Ticket help you create tictop.app's task from your website.

Installation

Install the package with:

npm i tictop-ticket

Usage

Creating task from your website

# Step 1. Using with javascript code
import tictopTicket from 'tictop-ticket';

# Step 2. Getting your token from www.tictop.app
const token = 'Your token'

# Step 3. Initialize and open first time
const options = {
    zIndex: 100
}

const requesterInfo = {
    id: "Requester's id",
    rootId: "",
    firstName: "Requester's first name",
    lastName: "Requester's last name",
    email: "Requester's email",
}

tictopTicket.initializeApp(token, options, requesterInfo)

# You can customize with your button
tictopTicket.ticket().open()

Subscribe receive notification

tictopTicket.ticket().subscribeReceiveNotification((data) => {
  console.log("🚀 Tictop ~ data:", data)

  # You can do something with notification from Tictop
});

Contributing

Website: www.tictop.vn

Application: www.tictop.app

Email: services@tictop.app

Mobile phone: (+84) 966 268 310

Hotline: (024) 99 99 96 98

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i tictop-ticket

Weekly Downloads

7

Version

1.0.19

License

ISC

Unpacked Size

49 kB

Total Files

23

Last publish

Collaborators

  • iteal