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

Upload Entries as JSON #10

Open
kronn opened this issue Jul 4, 2019 · 0 comments
Open

Upload Entries as JSON #10

kronn opened this issue Jul 4, 2019 · 0 comments

Comments

@kronn
Copy link
Owner

kronn commented Jul 4, 2019

Puzzletime has an undocumented, inofficial JSON-Interface. The rails controllers accept json on the CRUD-actions. This could be used to upload all entries of a day and then maybe/configurably just open the day-overview to double-check things.

This necessitates adding the credentials to the config and sending them with every request (or keep a cookie an send that).

A simple solution would just upload the local entries. A more sophisticated, sync-like behaviour would first retrieve a list of existing entries of the day in question and only upload new ones, outputting a summary of what has been done and what the current state is, so that I do not need a browser at all.

A good first step to this is IMHO to just upload blindly and create follow-up issues for further improvements.

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