Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

TheMerski/timetastic-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timetastic cli

Note

Archived due to issues getting the cookie lib to work consistently without giving issues on MacOS.

Warning

This tool uses cookies from your local chrome browser to hijack your timetastic session, please make sure to validate how your cookies are being used yourself before running it!

Note

this tool uses unsupported reverse engineered api's.
So be warned! It might break at any point in time.

CLI Features

  • Planning weekly or bi-weekly recurring events using timetastic recurring

Using the CLI

Timetastic has no way to create recurring leaves in your calendar, this cli tool fixes that and provides you with an cli to interact with timetastic.

Pre-requisites:

  • Go
  • Timetastic logged in on chrome

Installing:

go install github.com/themerski/timetastic-cli/timetastic@latest

Using the CLI:

timetastic --help

How it works

Timetastic provides an API but this is only available for Admins, luckily with some reverse engineering we can call the API's that their website calls (and some actual api's).

In order to do this we need 2 things:

1. Authentication

Authentication on timetastic is handled by cookies, so we use the great kooky library to read the timetastic cookies from Chrome.

Note

As mentioned by the kooky library, reaching into a browsers cookies is a bad idea. And as a users you will never want to give an tool access to you're cookie storage. I'm literally using it to hijack your timetastic session, so please make sure you are comfortable with what this tool does before using it.

2. Cross-site request forgery (xsrf) token

This is injected into the timetastic webpage, so with a single request and some xpath filtering we can get it from the page.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages