I am trying to use PythonAnywhere’s API to ‘type’ to a virtual console I have created there in order to execute a python script.
As such, I am using a POST command with " /api/v0/user/{username}/consoles/{id}/send_input/"
in order to send “input” as my key and “python helloWorld.py” as the value. Doing so successfully sends that text to the console. However, I cannot actually get it to execute on the console (Ie. the part where you would simply hit enter). The folks at PythonAnywhere told me I need to include “\n” at the end of that string. However, doing so simply sends the literal text “python helloWorld.py\n” to the console.
So basically I am wondering how to have Bubble / the API connector send “/n” as a new line, not as the literal individual characters?
Thanks a lot in advance.