Nat-As / togglbot

A simple http bot in python that uses the toggl API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TogglBot poc

A simple proof of concept http bot in python and shell that uses the toggl API (Python version: https://github.com/Nat-As/togglbot.py)

Summary

A python bot that automatically submits psuedo-random info into a scheduler field on toggl. (www.toggl.com) Developed to do my homework for me.

Installation

  • After cloning into the repository file:
  1. pip install requests
  2. install jq
  3. chmod -Rv a+rx togglbot
  4. edit the shell script (Lines 6 and 7) with your toggl email and password
  5. you might need to change your workspace ID (Line 8)

Usage

  1. Be sure to edit the shell script accordingly with your username and password
  2. Follow the steps below to get your WID
  3. Simply run: sudo ./togglbot.sh
  4. To add custom things, edit line 45 of togglthings.py
    • Note: Be sure to keep the same syntax

Troubleshooting

  • If you can't see the changes on your toggl report, make sure your API token appears on the terminal. If it does not, your password may be incorrect.
  • Can't find my WID for line 8

API Documentation

About

A simple http bot in python that uses the toggl API

License:Apache License 2.0


Languages

Language:Python 80.0%Language:Shell 20.0%