Update main branch (#3)

* New api from upstream

* Create .clang-format

* Update .clang-format

* Remove mintaka submodule

* Add premake-core submodule

* Update premake-core

* Fix includes
This commit is contained in:
Guilherme Werner
2024-03-06 19:01:54 -03:00
committed by GitHub
parent 67b1d41f22
commit 2e2462fd38
25 changed files with 501 additions and 55 deletions

View File

@ -1,26 +1,11 @@
// Copyright (c) Tribufu. All Rights Reserved.
#include <iostream>
#include <tribufu/client.h>
using namespace tribufu;
int main(int argc, char **argv)
{
auto client = new TribufuClient(0, "client_secret");
std::cout << "client_id: " << client->get_id() << std::endl;
json json_obj = {
{"nome", "John"},
{"idade", 25},
{"cidade", "Exemplo"}};
std::string json_str = json_obj.dump(4);
std::cout << json_str << std::endl;
client->get_token();
return 0;
}