From 662069bbfa634f17d46d59cc0287b6a450a3597b Mon Sep 17 00:00:00 2001 From: Kaushal Parikh Date: Mon, 25 Aug 2014 15:10:03 -0700 Subject: [PATCH] Remove history endpoint. --- app.py | 6 +++--- config.json | 2 +- templates/demo.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index d22f0cc..94420aa 100644 --- a/app.py +++ b/app.py @@ -176,10 +176,10 @@ def price(): data=response.text, ) - +""" @app.route('/history', methods=['GET']) def history(): - """Return the last 5 trips made by the logged in user.""" + Return the last 5 trips made by the logged in user. url = config.get('base_uber_url') + 'history' params = { 'offset': 0, @@ -199,7 +199,7 @@ def history(): endpoint='history', data=response.text, ) - +""" @app.route('/me', methods=['GET']) def me(): diff --git a/config.json b/config.json index 1c390a9..52e0dba 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,7 @@ "access_token_url": "https://login.uber.com/oauth/token", "authorize_url": "https://login.uber.com/oauth/authorize", "base_url": "https://login.uber.com/", - "scopes": "profile history", + "scopes": "profile", "name": "Sample app", "base_uber_url": "https://api.uber.com/v1/", "start_latitude": "37.781955", diff --git a/templates/demo.html b/templates/demo.html index 936257e..d07f104 100644 --- a/templates/demo.html +++ b/templates/demo.html @@ -14,7 +14,7 @@

Test the following functions of the api!

- +