mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 13:32:04 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
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
|