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

Commit c1d7cfd

Browse files
committed
update readme v0.0.4
1 parent 7f5d8ff commit c1d7cfd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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)