gtd-lib
v0.0.6
Published
Client library for working with my GTD API
Downloads
4
Readme
GTD Client Lib
This JavaScript library is used to interact with my Getting Things Done server.
Using it
Add the library to your Node project
Update package.json with the following and run npm i
afterwards.
"dependencies" {
"gtd-lib": "0.0.5"
}
Import the library
import gtd from 'gtd-lib';
Use the library
const token = await gtd.login('username', 's3cr3t-p455w0rd');
const getContexts = async () => {
return await gtd.getContexts(token);
}
const getTasks = async (contextId) => {
return await gtd.getTasksForContext(token, contextId);
}