Skip to content

allow to search for billing-accounts #11

@kronn

Description

@kronn

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions