Skip to content

Instantly share code, notes, and snippets.

@neonoatmeal
neonoatmeal / simple_app.py
Last active April 28, 2018 15:38 — forked from kemitche/simple_app.py
reddit OAuth 2.0 Python Webserver Example
#!/usr/bin/env python
from flask import Flask, abort, request
from uuid import uuid4
import requests
import requests.auth
import urllib
CLIENT_ID = None # Fill this in with your client ID
CLIENT_SECRET = None # Fill this in with your client secret
REDIRECT_URI = "http://localhost:65010/reddit_callback"