tictop-ticket
v1.0.19
Published
Tictop Ticket help you create tictop.app's task from your website.
Downloads
13
Readme
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: [email protected]
Mobile phone: (+84) 966 268 310
Hotline: (024) 99 99 96 98