xwords/xwords4/android/scripts/relay.py
Eric House 2dc80ac93f talk to new python script to interface with relay
So far uses curl and json-c to send b64-encoded data to new script
which is able to echo the data. Next that script will need to open a
UDP socket to the relay and return results that appear before timeout.
2017-10-17 21:32:11 -07:00

22 lines
435 B
Python
Executable file

#!/usr/bin/python
import mod_python, json
try:
from mod_python import apache
apacheAvailable = True
except ImportError:
apacheAvailable = False
print('failed')
def post(req, params):
jobj = json.loads(params)
jobj = {'data' : jobj['data']}
return json.dumps(jobj)
def main():
None
##############################################################################
if __name__ == '__main__':
main()