Usage with Frameworks

When using Flask, you can convert incoming webhook requests into Eventbrite
API objects using the webhook_to_object() method:

@app.route('/webhook',methods=['POST'])defwebhook():# Use the API client to convert from a webhook to an API objectapi_object=eventbrite.webhook_to_object(request)# Process the API objectifapi_object.type=='User':do_user_process(api_object)ifapi_object.type=='Event':do_event_process(api_object)return""