This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse | |
from django.views.decorators.csrf import csrf_exempt | |
import requests, json | |
# Get an OAuth token from https://www.eventbrite.com/myaccount/apps/ | |
# Create a new app, then expand the expandy-thingy and copy out the | |
# 'Your personal OAuth token' value. | |
EVENTBRITE_OAUTH_TOKEN = '...' | |
# Should look something like https://yoursite.slack.com/services/hooks/incoming-webhook?token=xxx...xxx |