开发者专用 Uber 应用示例 ============================== https://developer.uber.com/ 这是什么? ------------- 这是一个简单的 Pyt…
开发者专用 Uber 应用示例 ============================== https://developer.uber.com/ 这是什么? ------------- 这是一个简单的 Pyt…
This is a simple Python/Flask application intended to provide a working example of Uber's external API. The goal of these endpoints is to be simple, well-documented and to provide a base for developers to develop other applications off of.
http://localhost:7000/submit - ensure that both the profile and history OAuth scopes are checked.config.json file in the root folder and add your client id and secret as the environment variables UBER_CLIENT_ID and UBER_CLIENT_SECRET.export UBER_CLIENT_ID="{your client id}"&&export UBER_CLIENT_SECRET="{your client secret}"pip install -r requirements.txt to install dependenciespython app.pymake bootstrapmake testtest_auth_token at the top of the test_endpoints.py file, then run the tests.If you want to work on this application we’d love your pull requests and tickets on GitHub!
make test.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.
The base for all requests is https://api.uber.com/v1/, to find a list of all available endpoints, please visit: https://developer.uber.com/v1/endpoints/
暂无开放 Issues,或尚未同步最近议题。