Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 4b861c7

Browse files
authored
Merge pull request #3 from dubisdev/v0.0.4
V0.0.4
2 parents 7f5d8ff + 176c20e commit 4b861c7

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "todoist-rest-client",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "A simple todoist-rest-api client",
55
"main": "index.js",
66
"type": "module",

readme.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# TODOIST-REST-CLIENT v.0.0.4
2+
3+
## _A simple todoist-rest-api client_
4+
5+
## Important changes
6+
7+
- Now `create` function returns a promise (from axios). (No more changes here)
8+
- New general functions:
9+
- Get today JSONs => implemented method for getting today tasks JSON (not content/name arrays)
10+
- Now you can complete tasks!
11+
12+
```js
13+
import TDSClient from "todoist-rest-client";
14+
const myClient = new TDSClient(API_TOKEN);
15+
myClient.completeTask({id: ...}); //with the id
16+
myClient.completeTask({TaskObject: {TaskObject with id prop} }); //with a TaskObject
17+
```
18+
119
# TODOIST-REST-CLIENT
220

321
## _A simple todoist-rest-api client_

0 commit comments

Comments
 (0)