Files
sunnypilot/common/api/__init__.py
Vehicle Researcher 79ca8c9ec9 openpilot release
old-commit-hash: e94a30bec0
2016-11-29 18:34:21 -08:00

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)