mirror of https://github.com/Horhik/dotfiles.git
14 lines
301 B
Bash
Executable File
14 lines
301 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#your toggl api token
|
|
TOGGL_API_TOKEN= #here
|
|
res=$(curl -u $TOGGL_API_TOKEN:api_token \
|
|
-X GET https://api.track.toggl.com/api/v8/time_entries/current)
|
|
echo $res
|
|
|
|
# desc=$(echo $res | jq -r '.data .description')
|
|
# dur=$(echo $res | jq -r '.data .duration')
|
|
#
|
|
# echo $desc
|
|
# echo $dur
|