# tictop-ticket

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

Latest version **1.0.19** (published 2023-10-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install tictop-ticket
pnpm add tictop-ticket
yarn add tictop-ticket
bun add tictop-ticket
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.19 |
| Published | 2023-10-13 |
| First published | 2022-02-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 47.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | huydq.itealvn |
| Maintainers | iteal |

## Links

- npm: https://www.npmjs.com/package/tictop-ticket
- npm.io page: https://npm.io/package/tictop-ticket

## Dependencies (2)

- [typescript](https://npm.io/package/typescript.md) ~3.5.3
- [@webcomponents/custom-elements](https://npm.io/package/@webcomponents/custom-elements.md) ^1.6.0

## Recent versions

- 1.0.19 (latest) — 2023-10-13
- 1.0.18 — 2023-10-13
- 1.0.17 — 2023-10-12
- 1.0.16 — 2023-10-12
- 1.0.15 — 2023-06-22
- 1.0.14 — 2023-04-07
- 1.0.13 — 2023-04-05
- 1.0.12 — 2023-04-05
- 1.0.11 — 2023-02-20
- 1.0.10 — 2023-02-15
- 1.0.9 — 2022-05-05
- 1.0.8 — 2022-02-21
- 1.0.7 — 2022-02-21
- 1.0.6 — 2022-02-21
- 1.0.5 — 2022-02-21
- … 6 more at https://npm.io/package/tictop-ticket/versions

## README

# Tictop Ticket

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

## Installation

Install the package with:

```bash
npm i tictop-ticket
```

## Usage

### Creating task from your website

```python
# 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

```python
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](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/tictop-ticket · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
