forked from nique_372/TbpWrraper
23 lines
No EOL
487 B
C++
23 lines
No EOL
487 B
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;
| |
} |