File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 6
6
* [ python-requests] ( http://docs.python-requests.org/en/latest/ )
7
7
* Uber developer account and application client ID: https://developer.uber.com/
8
8
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
+
9
37
### Who do I talk to? ###
10
38
11
39
engineering@entmobile.com
You can’t perform that action at this time.
0 commit comments