mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-20 07:33:43 +08:00
c5d5c5d1f3
date: 2025-10-24T00:30:59 master commit: 405631baf9685e171a0dd19547cb763f1b163d18
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
|