My level in programming isn’t super advanced, and I am struggling to find documentation on this API for a practice script I’m working on.
I am following the instructions in the APL Wiki (aplwiki.com/wiki/TryAPL#API) but I am not getting anything back. The examples are in what looks like a C-family language or maybe Java, which I am not very familiar with, but I think I understand enough to see that my answer probably isn’t there.
I am using Python for this and, for instance, the bare-bones script below doesn’t work:
import requests
print(requests.post("https://tryapl.org/Exec", json=[0,0,0,"2 + 2"])
It simply loads endlessly without returning any error message. According to the APL Wiki, I shouldn’t need to set the first three values in the POST request to anything for it to work with such a simple expression.
Any help would be appreciated. Thanks in advance.
I tried following the instructions in the APL Wiki, and I tried finding how other people had done it before me. I also tried simply looking it up.