mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +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.2"
|
|
|
|
return requests.request(method, backend+endpoint, timeout=timeout, params=params)
|