mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 19:54:20 +00:00
Fix includes
This commit is contained in:
@ -1,26 +1,11 @@
|
|||||||
// Copyright (c) Tribufu. All Rights Reserved.
|
// Copyright (c) Tribufu. All Rights Reserved.
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <tribufu/client.h>
|
#include <tribufu/client.h>
|
||||||
|
|
||||||
using namespace tribufu;
|
using namespace tribufu;
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
auto client = new TribufuClient(0, "client_secret");
|
|
||||||
std::cout << "client_id: " << client->get_client_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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -3,3 +3,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <tribufu/client.h>
|
#include <tribufu/client.h>
|
||||||
|
#include <tribufu/json.h>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <tribufu/json.h>
|
|
||||||
#include <tribufu/macros.h>
|
#include <tribufu/macros.h>
|
||||||
#include <tribufu/native.h>
|
#include <tribufu/native.h>
|
||||||
#include <tribufu/platform.h>
|
#include <tribufu/platform.h>
|
||||||
|
#include <tribufu/std.h>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <tribufu/prelude.h>
|
#include <tribufu/prelude.h>
|
||||||
|
#include <tribufu/json.h>
|
||||||
|
|
||||||
namespace tribufu
|
namespace tribufu
|
||||||
{
|
{
|
||||||
|
24
include/tribufu/std.h
Normal file
24
include/tribufu/std.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// Copyright (c) Tribufu. All Rights Reserved.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifdef TRIBUFU_CPP
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstdarg>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <functional>
|
||||||
|
#include <iostream>
|
||||||
|
#include <memory>
|
||||||
|
#include <new>
|
||||||
|
#include <ostream>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
|
#endif
|
@ -3,6 +3,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <tribufu/prelude.h>
|
#include <tribufu/prelude.h>
|
||||||
|
#include <tribufu/json.h>
|
||||||
|
|
||||||
namespace tribufu
|
namespace tribufu
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user