code: def heartbeat():
      
      print "We got a call heartbeat notification\n"
  
      if request.method == 'POST':
          print request.form
      else:
          print request.args
  
      return "OK"
docs: Call Heartbeat URL