def webhook():

    # Use the API client to convert from a webhook to an API object. An API
    #   object is just a Python dict with some extra methods.
    api_object = eventbrite.webhook_to_object(request)

    # Use pusher to add content to to the HTML page.
    p["webhooks"].trigger("Attendee", api_object)
    return ""
Beispiel #2
0
def webhook():


    # Use the API client to convert from a webhook to an API object.
    api_object = eventbrite.webhook_to_object(request)

    # Use pusher to add content to to the HTML page.
    p.trigger(u'webhooks', u'Attendee', api_object)
    return ""
def webhook():
    """
        Webhooks simply provide API endpoints that the user can use to gather
        more information. They are sent as HTTP POSTS with the JSON mimetype
        specified in the header.

    """

    # Use the API client to convert from a webhook to an API object. An API
    #   object is just a Python dict with some extra methods.
    api_object = eventbrite.webhook_to_object(request)

    # Use pusher to add content to to the HTML page.
    p['webhooks'].trigger("Attendee", api_object)
    return ""