mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-16 14:54:22 +00:00
Add libhv and test http client
This commit is contained in:
@ -10,5 +10,17 @@ 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;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ project "example"
|
||||
includedirs
|
||||
{
|
||||
"../include",
|
||||
"../vendor",
|
||||
"../vendor/*/include",
|
||||
}
|
||||
|
||||
libdirs
|
||||
@ -75,6 +75,11 @@ project "example"
|
||||
{
|
||||
}
|
||||
|
||||
postbuildcommands
|
||||
{
|
||||
"{COPYFILE} ../vendor/libhv/lib/%{cfg.platform:gsub('-', '/')}/hv.dll %{cfg.targetdir}/hv.dll",
|
||||
}
|
||||
|
||||
filter { "platforms:mac-*" }
|
||||
system "macosx"
|
||||
systemversion "10.15"
|
||||
|
Reference in New Issue
Block a user