add komens skeleton
/ sync-to-origin (push) Waiting to run

This commit is contained in:
2025-04-04 18:01:50 +02:00
parent 74dc204f22
commit b005631d20
5 changed files with 53 additions and 10 deletions
+8 -1
View File
@@ -5,12 +5,19 @@
#ifndef _ba_ne_hg_
#define _ba_ne_hg_
// metods
enum metod {
GET,
POST,
};
using nlohmann::json;
extern CURL *curl;
namespace bakaapi {
void login(std::string username, std::string password);
void refresh_access_token();
json get_data_from_endpoint(std::string &endpoint, std::string data = "");
json get_data_from_endpoint(std::string &endpoint, metod metod,
std::string additional_data = "");
} // namespace bakaapi
#endif