GithubHelp home page GithubHelp logo

bobheadxi / labelist Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 37 KB

๐Ÿ˜ถ simple serverless function to attach labels to Todoist items when I can't afford premium

Home Page: https://bobheadxi.dev/labelist/

JavaScript 93.25% HTML 6.75%
serverless todoist hack

labelist's Introduction

labelist

For context: Todoist is a to-do manager that has its very nice labels feature behind a paywall.

I feel a little bad for doing this but it turns out that the Todoist REST API allows you to add labels to your tasks, regardless of whether or not you actually have premium. So this serverless just receives webhooks for task creation/update and then attaches labels via the API.

This will probably stop working at some point, but it seems to have been like this for quite a while. I imagine integrations might depend on this too, so I might be safe for the time being.

There's a bit more context in my blog post.

Example

Create a wanna-be-labelled task with your free Todoist account:

before

With the function deployed, a few seconds later:

after

Setup

I have this deployed using Zeit Now. To get the webhooks, you'll need to set up a Todoist application.

  1. Create a Todoist application.
  2. Get an API token for your Todoist account.
  3. Create an account in Zeit Now and download the CLI.
  4. Set the token in Now:
now secrets add todoist_api_token $MY_TOKEN
  1. Deploy the function:
npm run deploy
  1. Find the alias address (probably looks something like labelist.bobheadxi.now.sh) in the Zeit Now UI, and the webhook endpoint $ZEIT_ADDR/api/hooks to your Todoist application under "webhooks".

labelist's People

Contributors

bobheadxi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.