Skip to content

Commit 23616b0

Browse files
committed
merged heads
2 parents 78d567e + cb0983b commit 23616b0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@
66
* [python-requests](http://docs.python-requests.org/en/latest/)
77
* Uber developer account and application client ID: https://developer.uber.com/
88

9+
### Usage ###
10+
11+
```
12+
#!python
13+
14+
from uber import Api
15+
uber = Api.Uber(SERVER_TOKEN = '123456ABCDEF9876XYZ', user_token='ghij3456klmnop89101112')
16+
start = {'latitude': -1.2919211, 'longitude': 36.8248215}
17+
stop = {'latitude': -1.2866975, 'longitude': 36.8252936}
18+
price = uber.get_price_estimate(start, stop)
19+
time = uber.get_time_estimate(start, stop)
20+
req = uber.request('mnoxp-123abc-stuv456-lmnoq-trf32', start, stop)
21+
status = uber.request_details(req['request_id'])
22+
```
23+
24+
### Endpoints Implemented ###
25+
26+
* /products
27+
* /products/{product_id}
28+
* /estimates/price
29+
* /estimates/time
30+
* /promotions
31+
* /me
32+
* /requests
33+
* /requests/{request_id}
34+
* /sandbox/requests/{request_id}
35+
36+
937
### Who do I talk to? ###
1038

1139
engineering@entmobile.com

0 commit comments

Comments
 (0)