Giter VIP home page Giter VIP logo

todoist.js's Introduction

Usage

Download the todoist.js file and add it to your page

<script type="text/javascript" src="todoist.js"></script>

Then initiate with the following code

var test = new Todoist();
	test.token = "yourTokenHere";
	// To get a token go to the Account tab in the Todoist settings
	test.sync.oncomplete = function( data ){ console.log( data ); };
	// Function to be called once the API data has been received and processed
	test.sync();
	// Call the sync function

See reference.md for list of object propeties

Upcoming Functionality

Compatibility

This script has been developed and tested in Chrome. No effort has been made to test or develop for other environments. Any support otherwise is welcome!

Differences to API proper

Naming conventions

The Todoist V7 API is delivered with an underscore naming convention but in line with JavaScript conventions this script uses camelCase For example Todoist:live_notifications_last_read_id turns into: liveNotificationsLastReadId

Non-accessible data

In the some cases data from the Todoist API will not be accessible (eg sync_key/syncKey) to protect against errors or to reduce memory cost

Lacking API support

In the case of filters, it is removed as there is no API support to use

Necessary URLs

Type URL
API endpoints https://todoist.com/API/v7/*
Avatar Images https://dcff1xvirvpfp.cloudfront.net/*_small.jpg, https://dcff1xvirvpfp.cloudfront.net/*_medium.jpg, https://dcff1xvirvpfp.cloudfront.net/*_big.jpg https://dcff1xvirvpfp.cloudfront.net/*_s640.jpg
Oauth API https://todoist.com/oauth/*
Token API https://todoist.com/api/access_tokens/*
Templates https://todoist.com/importFromTemplate?t_url=*
Imports/Exports https://*.cloudfront.net/*.csv
Karma Chart https://todoist.com/chart?
Backups https://s3.amazonaws.com/user_backups.todoist.com/*

Legal

This is an unofficial repository that receives no support from and is not endorsed by Doist (the makers of Todoist)

todoist.js's People

Contributors

iruszpel avatar oiyouyeahyou avatar pothix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

todoist.js's Issues

sync.oncomplete not refreshing after completeditem

Hi Team,

Thanks heaps for making this awesome javascript tool! I have issue (which may be a user/me issue) where I complete an item, then sync back to todoist and the sync.oncomplete always returns the now completed item which should now be exlcuded. If i reload the javascript by refreshing page then all is fine.

What am i doing wrong?

Marking as complete more than one item doesn't work

I have a code which completes a task on click on element todoist.completeItem(id); todoist.write(); but every execution after the first one give an error "Sync item already processed. Ignored" and this bug is probably due to the same uuid in every write command to Todoist.

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.