-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Given a username and a password, ptimelog could query the JSON-Interface of puzzletime and query for billing-accounts and its details. If we support uploading the entries via JSON, we might have that information available already. This ties ptimelog closer to puzzletime, but that's the whole point, right?
In bash, this looks like this:
result=$(curl -H 'Content-Type: application/json; charset=utf-8' \
--data-urlencode "q=${SEARCH}" \
--data-urlencode "user=${USER}" \
--data-urlencode "pwd=${PWD}" \
--get --silent \
'https://time.puzzle.ch/work_items/search')
echo $result | jq -r .I want to have this as ptimelog search SEARCHTERM, with credentials coming from a config-file.
Metadata
Metadata
Assignees
Labels
No labels