TbpWrraper/CppEx/main.cpp
Nique_372 3d0c80ce97
2026-05-09 12:06:57 -05:00

23 строки
Без EOL
487 Б
C++

#include "..\\Src\\C++\\tbp_api_warper_cpp\\Base.hpp"
#include <thread>
#include <chrono>
int main()
{
TSN::CTbpBase tbp;
tbp.ApyKey("YOUR_API_KEY");
tbp.GetHttpClient()->Timeout(5000);
if (tbp.GetAllClients())
{
simdjson::ondemand::document* doc = tbp.GetLastJson();
std::string_view v;
doc->raw_json().get(v);
FastLog(FUNC_NAME, TSN::INFO_TEXT, v);
}
std::this_thread::sleep_for(std::chrono::seconds(2));
return 0;
}