mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-07-27 04:12:10 +08:00
53bccc4377
old-commit-hash: 449b482cc3236ccf31829830b4f6a44b2dcc06c2
9 lines
245 B
Python
9 lines
245 B
Python
import requests
|
|
|
|
def api_get(endpoint, method='GET', timeout=None, **params):
|
|
backend = "https://api.commadotai.com/"
|
|
|
|
params['_version'] = "OPENPILOTv0.2"
|
|
|
|
return requests.request(method, backend+endpoint, timeout=timeout, params=params)
|