import urllib2 | |
def trigger_job(event, context): | |
resultMap = {} | |
url = "https://manager.cloudautomator.com/trigger/XXXXXXXXXXXXXXXXXXXX" | |
responce = {} | |
headers = { | |
"Authorization":"CAAuth XXXXXXXXXXXXXXXXXXXXXXXXX", | |
"Contents-Length":"0" | |
} | |
req = urllib2.Request(url, "\r\n", headers) | |
res = urllib2.urlopen(req) | |
resultMap["ca_http_response"] = str(res.read()) | |
return resultMap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment