extern "C" __declspec(dllexport) String __cdecl test(){ HttpRequest reqApi("https://chucknorrisfacts.fr/api/get?data=nb:1;type:txt;tri:alea"); reqApi.TRACE(); reqApi.GET(); ValueMap json = ParseJSON(reqApi.Execute()); if(~json[0]["fact"].GetCount()) return ~json[0]["fact"]; else return " Error "; }
[Updated on: Sun, 04 August 2019 20:30]
Report message to a moderator