@app.route('/webhook', methods=['POST'])
def webhook():

    # Make sure this is a valid request from Dropbox
    if not validate_request(): abort(403)

    for uid in json.loads(request.data)['delta']['users']:
        # We need to respond quickly to the webhook request, so we do the
        # actual work in a separate thread. For more robustness, it's a
        # good idea to add the work to a reliable queue and process the queue
        # in a worker process.
        threading.Thread(target=process_user, args=(uid,)).start()
    return ''
Receive a list of changed user IDs from Dropbox and process each.
dataset/ETHPy150Open dropbox/mdwebhook/app.py/webhook