WIP
- Navigate over to https://developer.uber.com/, and sign up for an Uber developer account.
- Register a new Uber application and make your Redirect URI
http://localhost:7000/submit
- ensure that both theprofile
andhistory
OAuth scopes are checked. - Fill in the relevant information in the
config.json
file in the root folder and add your client id and secret as the environment variablesUBER_CLIENT_ID
andUBER_CLIENT_SECRET
. - Run
export UBER_CLIENT_ID="
{your client id}"&&export UBER_CLIENT_SECRET="
{your client secret}"
- Run
pip install -r requirements.txt
to install dependencies - Run
python app.py
- Navigate to http://localhost:7000 in your browser
Click the button below to set up this sample app on Heroku:
After creating your app on Heroku, you have to configure the redirect URL for your Uber OAuth app. Use a https://
{your-app-name}.herokuapp.com/submit
URL.
You will also want to configure the heroku environment variable FLASK_DEBUG=False in order to properly serve SSL traffic.
Development
If you want to work on this application I’d love your pull requests and tickets on GitHub!
- If you open up a ticket, please make sure it describes the problem or feature request fully.
- If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with
make test
.