コード例 #1
0
def handle_selfie_status(req):
	if req.a == 1:
		print "Taking a selfie!"
		TAS.main()
		print "Running script %s"%(req.a)
		print "Returning 1"
		return StatusResponse(1)
	else:
		print "Returning %s"%(req.a)
		return StatusResponse(0)
コード例 #2
0
def callback(data):
    # Call seflie script
    print "Running selfie script..."
    SS.main()