Skip to content

A simple AWS Lambda function to add tasks to TickTick

Notifications You must be signed in to change notification settings

kaisoz/ticktick-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TickTick-Lambda

Since there's no public REST API to interact with TickTick, I'm writing my own in NodeJs. So far it only consists of one Lambda function that allows you to add tasks.

Prerequisites

  • At the moment, you need to have your lambda function already created in AWS for the NodeJs 8.10 runtime.

  • AWS Command Line Interface is required to publish the function.

  • You'll need Mocha command available to run the tests. For this:

npm install -g mocha

Running the tests

Just go to the src/ folder and run

npm test

Deployment

You can pass the function name as an argument to the publish.sh script

./publish.sh ticktick-lambda

or just modify the FUNC_NAME variable of the publish.sh script

FUNC_NAME=ticktick-lambda

and then run the script without arguments

./publish.sh

API

The function accepts a TickTick task definition in JSON. Currently these are all known task parameters:

Field name Field meaning
title Task title
content Task body
status 0 - open
2 - completed
priority 0 - None
1 - Low
2 - Medium low
3 - Medium
4 - Medium high
5 - High
isAllDay If true, the task lasts the whole day
timeZone Timezone used for dates
startDate When does the task start
modifiedDate Last time the task was modified
dueDate Task due date

Since the dates are parsed using the moment library, they can be expressed in ISO 8601 formats and RFC 2822 Date time format. If the format is not known, moment falls back to new Date(string).

About

A simple AWS Lambda function to add tasks to TickTick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published