Nov 10, 2018

Example of calling OS command in Python

import subprocess

def post_by_curl(uuid):
    from subprocess import call
    link="http://oreo.i88.ca/feedback?uuid="+uuid
    retcode = call(["curl",link]) 
    return retcode