23 строки
Без EOL
487 Б
C++
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;
|
|
} |