# nodejs-clickup

> A api wrapper for ClickUp's V2 Api

Latest version **1.1.2** (published 2022-10-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install nodejs-clickup
pnpm add nodejs-clickup
yarn add nodejs-clickup
bun add nodejs-clickup
```

## 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.1.2 |
| Published | 2022-10-16 |
| First published | 2022-10-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Shawn E.#5229 |
| Maintainers | shawn_engmann |

## Links

- npm: https://www.npmjs.com/package/nodejs-clickup
- Repository: https://github.com/Shawn-E/nodejs-clickup
- Homepage: https://github.com/Shawn-E/nodejs-clickup#readme
- Issues: https://github.com/Shawn-E/nodejs-clickup/issues
- npm.io page: https://npm.io/package/nodejs-clickup

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.1.2

## Recent versions

- 1.1.2 (latest) — 2022-10-16
- 1.1.1 — 2022-10-16
- 1.1.0 — 2022-10-16
- 1.0.0 — 2022-10-15

## README

# Nodejs ClickUp
Node ClickUp is a Node.js Wrapper for ClickUp API

---

# Functions / Exports
- [createTask](#createTask)
- [deleteTask](#deleteTask)
- [commentOnTask](#commentOnTask)
- [updateTask](#updateTask)
- [getTask](#getTask)
- [getTasks](#getTasks)

---

Initialise Package:
```js
    const ClickUp = require('node-clickup');
    const client = new ClickUp('<YOUR_TOKEN_HERE>');
```
To get your token look [here](#getting-clickup-token).

---

# createTask
Creates a task in a list.
```js
    let data = await client.createTask('<LIST_ID_HERE>', {
      name: 'Task Name Here',
      description: 'Task Description Here'
    });

    console.log(data)
```
For more info on what you can pass into the second param, head to this site => [ClickUp API Refrence - Create Task](https://clickup.com/api/clickupreference/operation/CreateTask/)

# deleteTask
Delete a task in a list.
```js
    let data = await client.deleteTask('<TASK_ID_HERE>');

    console.log(data)
```

# commentOnTask
Comment on a task.
```js
    let data = await client.commentOnTask('<TASK_ID_HERE>', {
        comment_text: 'Task comment coasdntent'
    });

    console.log(data)
```
For more info on what you can pass into the second param, head to this site => [ClickUp API Refrence - Create Task Comment](https://clickup.com/api/clickupreference/operation/CreateTaskComment/)


# updateTask
Update a task.
```js
    let data = await client.updateTask('<TASK_ID_HERE>', {
        name: 'Updated Task Name',
        description: 'Updated Task Description'
    });

    console.log(data)
```
For more info on what you can pass into the second param, head to this site => [ClickUp API Refrence - Update Task](https://clickup.com/api/clickupreference/operation/UpdateTask/)

# getTask
Get a task by task id.
```js
    let data = await client.getTask('<TASK_ID_HERE>', <include_subtasks?>);

    console.log(data)
```
For more info on what you can pass into the second param, head to this site => [ClickUp API Refrence - Get Task](https://clickup.com/api/clickupreference/operation/GetTask/)

# getTasks
get tasks from list id.
```js
    let data = await client.updateTask('<LIST_ID_HERE>', {
        <INSERT_FILTERS_HERE>
    });

    console.log(data)
```
For more info on what you can pass into the second param, head to this site => [ClickUp API Refrence - Get Tasks](https://clickup.com/api/clickupreference/operation/GetTasks/)

---

# Knowledge Base

#### Getting ClickUp Token

- Open the ClickUp dashboard.
- Click on your profile icon in the bottom left.
- Click on Apps under your user profile.
- Copy your API token it should start with *pk*
![API TOKEN PICTURE](https://cdn.shawnengmann.com/shawn/LdsOJJ.png)

---

More coming soon!

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