mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-01 21:53:42 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
16 lines
436 B
C++
16 lines
436 B
C++
#pragma once
|
|
|
|
#include <curl/curl.h>
|
|
#include <string>
|
|
|
|
#include "common/util.h"
|
|
#include "third_party/json11/json11.hpp"
|
|
|
|
namespace CommaApi2 {
|
|
|
|
const std::string BASE_URL = util::getenv("API_HOST", "https://api.commadotai.com").c_str();
|
|
std::string create_token(bool use_jwt, const json11::Json& payloads = {}, int expiry = 3600);
|
|
std::string httpGet(const std::string &url, long *response_code = nullptr);
|
|
|
|
} // namespace CommaApi2
|