File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 7
7
* Uber developer account and application client ID: https://developer.uber.com/
8
8
9
9
### Usage ###
10
-
11
10
12
11
```
13
12
#!python
14
13
15
14
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'])
18
22
```
19
23
24
+ ### Endpoints Implemented ###
20
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}
21
35
22
- ### Who do I talk to? ###
23
36
24
- engineering@entmobile.com
37
+ ### Who do I talk to? ###
25
38
39
+ engineering@entmobile.com
You can’t perform that action at this time.
0 commit comments