Skip to content

Commit cb0983b

Browse files
committed
README.md edited online with Bitbucket
1 parent 907aaaa commit cb0983b

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,33 @@
77
* Uber developer account and application client ID: https://developer.uber.com/
88

99
### Usage ###
10-
1110

1211
```
1312
#!python
1413
1514
from uber import Api
16-
api = Api.Uber(**credentials)
17-
api.get_profile()
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'])
1822
```
1923

24+
### Endpoints Implemented ###
2025

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}
2135

22-
### Who do I talk to? ###
2336

24-
engineering@entmobile.com
37+
### Who do I talk to? ###
2538

39+
engineering@entmobile.com

0 commit comments

Comments
 (0)