2020-01-07 20:08:18 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
2020-01-07 20:53:27 +00:00
|
|
|
#include "api_request.h"
|
2020-01-07 20:08:18 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
cout << "Comunic Term (c) Pierre HUBERT" << endl;
|
2020-01-07 20:53:27 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2020-01-07 20:08:18 +00:00
|
|
|
return 0;
|
|
|
|
}
|