twitter-reference-app
Reference app that posts to Twitter when a Yext location updates.
Prerequisites
Setup
- Clone this repository.
git clone https://github.com/yext/twitter-reference-app.git
- Install Python requirements using pip. Using a Python environment tool like virtualenv is recommended.
virtualenv /path/to/env
/path/to/env/bin/pip install -r requirements.txt
- Create a configuration file containing Yext and Twitter credentials. See app.cfg.sample for reference.
- Run the app.
APP_SETTINGS=/path/to/config /path/to/env/bin/python app.py
- Navigate to http://127.0.0.1:5000/ to view app.
Note: To successfully go through the OAuth flow, the Yext OAuth redirect domain and Twitter OAuth redirect URI must both be set to point to your app.