mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-16 13:04:19 +00:00
Use native tribufu sdk
This commit is contained in:
@ -1,11 +1,31 @@
|
||||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
#include <iostream>
|
||||
#include <tribufu/client.h>
|
||||
#include <tribufu++/sdk.h>
|
||||
|
||||
using namespace tribufu;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (TribufuSdk::Initialize())
|
||||
{
|
||||
std::cout << "Tribufu SDK initialized successfully!" << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Failed to initialize Tribufu SDK!" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (TribufuSdk::Ping())
|
||||
{
|
||||
std::cout << "Tribufu SDK is online!" << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Tribufu SDK is offline!" << std::endl;
|
||||
}
|
||||
|
||||
TribufuSdk::Shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user