1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-11-16 10:31:06 +00:00
comunicterm/main.cpp

19 lines
477 B
C++

#include <iostream>
#include "api_request.h"
using namespace std;
int main()
{
cout << "Comunic Term (c) Pierre HUBERT" << endl;
auto req = ApiRequest("user/getInfosMultiple");
req.addArg("usersID", "1");
auto res = req.exec();
cout << "code: " << res.code() << endl;
cout << "content" << res.content().serialize() << endl;
cout << "First name found: " << res.object().at("1").as_object().at(U("firstName")).as_string() << endl;
return 0;
}