Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

todoist_from_pascal

Access Todoist REST API from Pascal

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Access Todoist from Pascal with the Todoist REST API

Cross-platform test of accessing Todoist from Pascal.

Uses TCastleDownload component underneath from Castle Game Engine. See TCastleDownload API docs.

Uses Todoist REST API.

Build like any other CGE project -- use Castle Game Engine editor or Castle Game Engine build tool, that underneath call FPC or Delphi.

To make it compile and work you need to provide some Todoist info:

  • Create a file with your Todoist API token called token.inc. It should contain a single Pascal string with your token like
    pascal
    '00aabbccddeeff00112233445566778899aabbcc'
  • In code, provide some valid task ID. Get task id by looking at Todoist UI in browser, like https://todoist.com/app/today/task/XXXXXXX .

This gets your projects names, and gets a description (in Markdown) of a single specific task.

Enjoy!

Michalis Kamburelis

License

Permissive BSD 3, https://github.com/castle-engine/castle-engine/blob/master/doc/licenses/COPYING.BSD-3-clause.txt .