https://github.com/unisharp/node-checkvist-client
A checkvist API wrapper for nodejs. (under development)
https://github.com/unisharp/node-checkvist-client
Last synced: 10 days ago
JSON representation
A checkvist API wrapper for nodejs. (under development)
- Host: GitHub
- URL: https://github.com/unisharp/node-checkvist-client
- Owner: UniSharp
- License: mit
- Created: 2016-02-09T07:55:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T04:54:26.000Z (over 10 years ago)
- Last Synced: 2025-02-27T18:07:55.740Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## CheckVist API Wrapper for node.js
Under development, this is a draft release.
## Current Implementations:
* Login API
* Get Lists API
* Get ListItems API
* Update Item API
### Usage
`npm install checkvist-client`
```
const checkvist = require('checkvist-client');
const credentials = {
username: '', // email
key: '', // API Key
};
checkvist.login(credentials, (token) => {
checkvist.getLists({token: token}, (lists) => {
var listId = lists[0].id;
checkvist.getListItems({token: token, id: listId}, (tasks) => {
console.log(tasks);
var options = {
token: token,
checklistId: listId,
taskId: tasks[0].id
};
var task = {
'task[content]': 'updated ' + tasks[t].content,
'task[tags]': 'newTag'
}
checkvist.updateListItem(options, task, function(d) {console.log(d);});
});
});
});
```