Snippets

Duane Blake Adding tasks to Todoist from the command line

Created by Duane Blake

File addTaskToTodoist Added

  • Ignore whitespace
  • Hide word diff
+#!/bin/sh
+echo "Please enter the name of the todo"
+read TODO
+curl https://api.todoist.com/sync/v8/quick/add \
+    -H "Authorization: Bearer 0123456789abcdef0123456789abcdef01234567" \
+    -d text="$TODO" \
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.