Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

v0.4.1 - 2/8/2017
v0.5.0 - 17/8/2017
-------------------
- Added support Driver APIs

v0.4.1 - 2/7/2017
-------------------
- Made state token optional in authorization code grant

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015-2016 Uber Technologies, Inc.
Copyright (c) 2015-2017 Uber Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
2 changes: 1 addition & 1 deletion example/authorize_user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2016 Uber Technologies, Inc.
# Copyright (c) 2017 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion example/request_ride.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2016 Uber Technologies, Inc.
# Copyright (c) 2017 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion example/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2016 Uber Technologies, Inc.
# Copyright (c) 2017 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down
36 changes: 18 additions & 18 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
appdirs>=1.4.3
certifi>=2017.7.27.1
chardet>=3.0.4
contextlib2>=0.5.5
funcsigs>=1.0.2
idna>=2.5
mock>=2.0.0
packaging>=16.8
pbr>=3.1.1
py>=1.4.34
pyparsing>=2.2.0
pytest>=3.1.3
PyYAML>=3.12
requests>=2.18.2
six>=1.10.0
urllib3>=1.22
vcrpy>=1.11.1
wrapt>=1.10.10
appdirs==1.4.3
certifi==2017.7.27.1
chardet==3.0.4
contextlib2==0.5.5
funcsigs==1.0.2
idna==2.5
mock==2.0.0
packaging==16.8
pbr==3.1.1
py==1.4.34
pyparsing==2.2.0
pytest==3.2.0
PyYAML==3.12
requests==2.18.3
six==1.10.0
urllib3==1.22
vcrpy==1.11.1
wrapt==1.10.10
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='uber_rides',
version='0.4.1',
version='0.5.0',
packages=find_packages(),
description='Official Uber Rides API Python SDK',
long_description=readme,
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_cancel_current_ride
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -23,7 +23,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -43,7 +43,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -63,7 +63,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_cancel_ride
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/9bdb3278-21bd-46b8-90fa-51404b0d6acf
response:
Expand All @@ -23,7 +23,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/610d868b-e21c-483a-9932-97e61b852fd2
response:
Expand All @@ -43,7 +43,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/0aec0061-1e20-4239-a0b7-78328e9afec8
response:
Expand All @@ -63,7 +63,7 @@ interactions:
body: null
headers:
Content-Length: ['0']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: DELETE
uri: https://sandbox-api.uber.com/v1.2/requests/0aec0061-1e20-4239-a0b7-78328e9afec8
response:
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_estimate_ride
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interactions:
"start_place_id": null}'
headers:
Content-Length: ['241']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -32,7 +32,7 @@ interactions:
"start_place_id": null}'
headers:
Content-Length: ['241']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -58,7 +58,7 @@ interactions:
"start_place_id": null}'
headers:
Content-Length: ['241']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -84,7 +84,7 @@ interactions:
"start_place_id": null}'
headers:
Content-Length: ['241']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_estimate_ride_with_places
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interactions:
null, "end_place_id": "work", "start_latitude": null, "start_place_id": "home"}'
headers:
Content-Length: ['218']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -30,7 +30,7 @@ interactions:
null, "end_place_id": "work", "start_latitude": null, "start_place_id": "home"}'
headers:
Content-Length: ['218']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -55,7 +55,7 @@ interactions:
null, "end_place_id": "work", "start_latitude": null, "start_place_id": "home"}'
headers:
Content-Length: ['218']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -80,7 +80,7 @@ interactions:
null, "end_place_id": "work", "start_latitude": null, "start_place_id": "home"}'
headers:
Content-Length: ['218']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_estimate_shared_ride
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interactions:
null}'
headers:
Content-Length: ['238']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -32,7 +32,7 @@ interactions:
null}'
headers:
Content-Length: ['238']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -58,7 +58,7 @@ interactions:
null}'
headers:
Content-Length: ['238']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand All @@ -84,7 +84,7 @@ interactions:
null}'
headers:
Content-Length: ['238']
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
content-type: [application/json]
method: POST
uri: https://sandbox-api.uber.com/v1.2/requests/estimate
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_get_current_ride_details
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -24,7 +24,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -44,7 +44,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -66,7 +66,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/test_get_current_shared_ride_details
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -24,7 +24,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -44,7 +44,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand All @@ -66,7 +66,7 @@ interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.3.0]
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://sandbox-api.uber.com/v1.2/requests/current
response:
Expand Down
28 changes: 28 additions & 0 deletions tests/fixtures/test_get_driver_payments
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://api.uber.com/v1/partners/payments
response:
body: {string: !!python/unicode '{"count":13,"limit":10,"payments":[{"payment_id":"5cb8304c-f3f0-4a46-b6e3-b55e020750d7","category":"fare","event_time":1502842757,"trip_id":"5cb8304c-f3f0-4a46-b6e3-b55e020750d7","cash_collected":0.0,"amount":3.12,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.16,"service_fee":-1.04},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"a9d1efa8-f2b1-46a2-acee-6847c752b0eb","category":"fare","event_time":1502841851,"trip_id":"a9d1efa8-f2b1-46a2-acee-6847c752b0eb","cash_collected":0.0,"amount":4.49,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":5.99,"service_fee":-1.5},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"da30d9ce-4592-40fe-9ba9-c9b970d1d391","category":"fare","event_time":1502841640,"trip_id":"da30d9ce-4592-40fe-9ba9-c9b970d1d391","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"b5613b6a-fe74-4704-a637-50f8d51a8bb1","category":"fare","event_time":1502843894,"trip_id":"b5613b6a-fe74-4704-a637-50f8d51a8bb1","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"50eebfa4-9985-41ca-bbd9-be0150e32d4c","category":"fare","event_time":1502842172,"trip_id":"50eebfa4-9985-41ca-bbd9-be0150e32d4c","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"ba950c43-c57a-4ab8-a8db-2057dd30756b","category":"fare","event_time":1502842655,"trip_id":"ba950c43-c57a-4ab8-a8db-2057dd30756b","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"9ffeb986-0a73-4312-bb5e-22a1cc13e495","category":"fare","event_time":1502842917,"trip_id":"9ffeb986-0a73-4312-bb5e-22a1cc13e495","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"4415e5f6-60f2-451f-ade1-c3d6ae286d76","category":"fare","event_time":1502843623,"trip_id":"4415e5f6-60f2-451f-ade1-c3d6ae286d76","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"43851410-34ba-4054-9a4e-711e4e6a8fe5","category":"fare","event_time":1502843338,"trip_id":"43851410-34ba-4054-9a4e-711e4e6a8fe5","cash_collected":0.0,"amount":3.0,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":4.0,"service_fee":-1.0},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"},{"payment_id":"020f251b-e8ac-4ad1-ae9f-543a0db6b294","category":"fare","event_time":1502830183,"trip_id":"020f251b-e8ac-4ad1-ae9f-543a0db6b294","cash_collected":0.0,"amount":4.34,"driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","breakdown":{"other":5.79,"service_fee":-1.45},"rider_fees":{},"partner_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","currency_code":"USD"}],"offset":0}'}
headers:
cache-control: [max-age=0]
connection: [keep-alive]
content-language: [en]
content-type: [application/json]
date: ['Wed, 16 Aug 2017 22:54:50 GMT']
etag: [W/"a757f6e22e2dffdb1ccece2423b5f517f01ca791"]
server: [nginx]
strict-transport-security: [max-age=604800, max-age=2592000]
transfer-encoding: [chunked]
x-content-type-options: [nosniff]
x-frame-options: [SAMEORIGIN]
x-rate-limit-limit: ['2000']
x-rate-limit-remaining: ['1995']
x-rate-limit-reset: ['1502924400']
x-uber-app: [uberex-nonsandbox, optimus]
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
version: 1
28 changes: 28 additions & 0 deletions tests/fixtures/test_get_driver_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
interactions:
- request:
body: null
headers:
X-Uber-User-Agent: [!!python/unicode Python Rides SDK v0.5.0]
method: GET
uri: https://api.uber.com/v1/partners/me
response:
body: {string: !!python/unicode '{"phone_number":"+14075550001","picture":"https:\/\/d1w2poirtb3as9.cloudfront.net\/16ce502f4767f17b120e.jpeg","first_name":"Uber","last_name":"Tester","promo_code":"ubert4544ue","rating":5.0,"activation_status":"active","driver_id":"8LvWuRAq2511gmr8EMkovekFNa2848lyMaQevIto-aXmnK9oKNRtfTxYLgPq9OSt8EzAu5pDB7XiaQIrcp-zXgOA5EyK4h00U6D1o7aZpXIQah--U77Eh7LEBiksj2rahB==","email":"uber.developer+tester@example.com"}'}
headers:
cache-control: [max-age=0]
connection: [keep-alive]
content-language: [en]
content-length: ['419']
content-type: [application/json]
date: ['Wed, 16 Aug 2017 22:54:50 GMT']
etag: [W/"d76d91610e42a7b0d6e551766905af177b466447"]
server: [nginx]
strict-transport-security: [max-age=604800, max-age=2592000]
x-content-type-options: [nosniff]
x-frame-options: [SAMEORIGIN]
x-rate-limit-limit: ['2000']
x-rate-limit-remaining: ['1997']
x-rate-limit-reset: ['1502924400']
x-uber-app: [uberex-nonsandbox, optimus]
x-xss-protection: [1; mode=block]
status: {code: 200, message: OK}
version: 1
Loading