mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-05 07:43:41 +08:00
79ca8c9ec9
old-commit-hash: e94a30bec07e719c5a7b037ca1f4db8312702cce
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.0"
|
|
|
|
return requests.request(method, backend+endpoint, timeout=timeout, params=params)
|