All Projects → Cosmitar → Todoist Js

Cosmitar / Todoist Js

Licence: mit
!! OBSOLETE !! The (un)official Todoist javascript API library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Todoist Js

Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+897.83%)
Mutual labels:  babel, jest
Serverless Typescript Starter
🗄🙅‍♀️ Deploy your next serverless JavaScript function in seconds
Stars: ✭ 653 (+1319.57%)
Mutual labels:  babel, jest
Jasmine Matchers
Write Beautiful Specs with Custom Matchers for Jest and Jasmine
Stars: ✭ 552 (+1100%)
Mutual labels:  jest, tdd
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+42200%)
Mutual labels:  babel, tdd
Yarn Package Boilerplate
An Yarn package with babel, jest, flow, prettier and more
Stars: ✭ 10 (-78.26%)
Mutual labels:  babel, jest
Entria Fullstack
Monorepo Playground with GraphQL, React, React Native, Relay Modern, TypeScript and Jest
Stars: ✭ 434 (+843.48%)
Mutual labels:  babel, jest
Clean Ts Api
API em NodeJs usando Typescript, TDD, Clean Architecture, Design Patterns e SOLID principles
Stars: ✭ 619 (+1245.65%)
Mutual labels:  jest, tdd
Pwa
An opinionated progressive web app boilerplate
Stars: ✭ 353 (+667.39%)
Mutual labels:  babel, jest
Javascript Data Structures And Algorithms
Exercises, algorithms
Stars: ✭ 26 (-43.48%)
Mutual labels:  jest, tdd
Vue Testing Handbook
A guide on testing Vue components and applications
Stars: ✭ 669 (+1354.35%)
Mutual labels:  jest, tdd
Baretest
An extremely fast and simple JavaScript test runner.
Stars: ✭ 364 (+691.3%)
Mutual labels:  jest, tdd
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-30.43%)
Mutual labels:  babel, jest
Nod
Node.js module generator/boilerplate with Babel, Jest, Flow, Documentation and more
Stars: ✭ 355 (+671.74%)
Mutual labels:  babel, jest
Opensource
Delivering delightful digital solutions. Open Source packages with combined ~85M/month downloads, semantically versioned following @conventional-commits. Fully powered by Jest, @Babel TypeScript, @Airbnb @ESLint + @Prettier, @YarnPKG + @Lerna independent versioning, GH @Actions & automated dep updates with @RenovateBot.
Stars: ✭ 459 (+897.83%)
Mutual labels:  babel, jest
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (+678.26%)
Mutual labels:  babel, jest
Express Babel
Express starter kit with ES2017+ support, testing, linting, and code coverage
Stars: ✭ 621 (+1250%)
Mutual labels:  babel, jest
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (+547.83%)
Mutual labels:  babel, jest
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+40610.87%)
Mutual labels:  babel, jest
Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+1339.13%)
Mutual labels:  jest, tdd
Enzyme Matchers
Jasmine/Jest assertions for enzyme
Stars: ✭ 881 (+1815.22%)
Mutual labels:  jest, tdd

OBSOLETE

Todoist V7 endpoint is deprecated

No Maintenance Intended

todoist-js NPM version

The (un)official Todoist javascript API library

A javascript client for Todoist Sync API with full support of endpoint resources. This is an adaptation from Todoist official Python lib.

How to start

install the package npm install todoist-js --save into your project

Usage

import the API

import TodoistAPI from 'todoist-js'

Create an instance providing an access token (how to get an access token?)

const todoist = new TodoistAPI('xxxxxxxxxx');

Get productivity stats

todoist.completed.get_stats().then(stats => {
  console.log(stats.karma_trend);
});

🚀 You can see full list of capabilities in action into tests folder

Try out the lib by cloning this Runkit notebook

Implementation opportunities

  • Web apps or sites integration.
  • Web plugins for content managers like Wordpress, Joomla, etc.
  • Browsers add-ons.
  • Mobile world with hybrid apps frameworks like react-native, Ionic and others.
  • Node.js on server side and universal javascript apps.
  • Web components for libs like Reactjs, Angular and more.
  • Integration with desktop applications, applets, widgets and all those that support javascript.
  • Can you think of any other?

Documentation

Official API Docs for developers

What's next

  • [x] Implement a demo app using this library.✅ : this is Asist, it can autenticate, sync, fetch and complete tasks for Todoist.
  • [x] Implement a web oAuth2 process and document it.✅ : OAuth process
  • [ ] Test browsers compatibility.
  • [ ] Test compatibility with Node.

Development / Testing

Clone this repo git clone [email protected]:Cosmitar/todoist-js.git.

This repo includes a Jest suite of tests, used for TDD. Before start, make sure you create a .env file (you can use .env-example as template) and complete, as minimum requirement, the variable ACCESS_TOKEN with a valid user access token (how to get an access token?). Then, install all dev dependencies by running npm install

❌ Do not run all tests together with npm run test or you'll get a max request limit per seconds error.

Run each suite independently like:

npm run test -t api.spec.js

npm run test -t completed.spec.js

npm run test -t filter.spec.js and so on.

❗ Some tests can fail due to restrictions in your account if you're not premium.

If you want to test share.spec.js you need first to include a 2nd access token (from a different user) into .env file, using variable ALTERNATIVE_ACCOUNT_ACCESS_TOKEN

Contributing

Pull requests and issues are welcome. If you've found a bug, please open an issue.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].