1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "afb-wsj1.hpp" void onreply(const char *value){ std::cout<< *value<<std::endl; system("PAUSE"); } int main(){ std::string uri,api,verb, req; char * request = (char*)req.c_str(); afb::wsj1 sj1; sj1.connect(uri); sj1.call(api.c_str(),verb.c_str(),request,onreply); return EXIT_SUCCESS; }