I have created a webapp in order to use the API. I would like to download zip files that I am making in my /home/myname folder and then delete them from PythonAnywhere to make room for more zip files that a Python program on PythonAnywhere is generating.
I simply do not understand how to use the API. From the documentation I think it is okay to put
import requests
requestobj = requests.get("https://www.pythonanywhere.com/api/v0/user/{username}/files/tree/?path={path}".format(username=myusername, path="/home/myusername"))
But this does not yield anything. What do I need to do?
Also, is it possible to download a file through the API? What about deleting a file?