mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 05:24:06 +08:00
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)
|