Giter Club home page Giter Club logo

ticktick-lambda's Introduction

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).

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.