Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to search for billing-accounts #11

Open
kronn opened this issue May 6, 2020 · 0 comments
Open

allow to search for billing-accounts #11

kronn opened this issue May 6, 2020 · 0 comments

Comments

@kronn
Copy link
Owner

kronn commented May 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant