Open Tesla-Renting opened 3 years ago
Thanks for this, I may add to the currently undocumented curl directory that already has a shell script for a commandline wrapper around curl. I'm wary about advertising these things too much though. Using the javascript interface with a manual submit button (as at https://learnlatex.org or https://latex.org/forum/ adds a natural hinderence to too many document requests being made in a short time.
Currently the service runs free to the user with no login or registration required, I'd like to keep it that way but if scripted interfaces are being used (php as here or the bash script that I provided) it is easy to generate multiple requests and swamp the server, even if that is not intended to be malicious.
I created a php script that calls the cgi with multiple files, because I couldn't find any php example. I think maybe other people find this helpful, so maybe it could be included somewhere in the docs.
How to call
Only the constructor and
generateDocument
are public, so just look at the interface of these methods. The files handed over to the constructor should all be in the current working directory, so maybe you have to callchdir
before callinggenerateDocument
.