Skip to content

Commit

Permalink
upd create-task.template.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
romanwrites authored and dehesa committed Mar 20, 2023
1 parent 760330e commit 6f64219
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/apps/todoist/create-task.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ fi
TASK="$1"

if [[ $TASK != "" ]]; then
curl "https://api.todoist.com/sync/v8/quick/add" \
-X -S POST \
--data '{"text": "'"$TASK"'"}' \
curl "https://api.todoist.com/rest/v2/tasks" \
-X POST \
--data '{"content": "'"$TASK"'"}' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_TOKEN"

Expand Down

0 comments on commit 6f64219

Please sign in to comment.