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?
I believe a \n equates to ASCii hex value A0 (decimal value of 10). Did not test this
You could try append: arbitrary text then enter {ALT} 10, using the ALT key and entering 10 on the numeric keypad. This might append the hex AO (decimal 10). The result character you see should look funny, I got a little square like thing. If you see 10 when you type it in then it is not taking the ALT code. FYI- you have to hold the ALT key down when doing the 10 (sorry you likely know this, but others may find it helpful info).
Thanks a lot for the reply. This makes sense but I think Bubble / API connecter did the same thing and just converted it to the symbol which then also showed up in the console lol: