RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
fetch_data.cpp
Go to the documentation of this file.
1 /*
5 int main ( int argc, char* argv[] )
6 {
7  rapp::services::service_controller ctrl;
8  auto callback = [&]( const std::string json ){ std::cout << "JSON: " << json << std::endl;};
9  auto fetchHandle = std::make_shared<rapp::cloud::fetchPersonalData>( "alex", callback );
10  // Create the fetch Data handler, and pass it the username and a callback that will receive the reply.
11  if ( fetchHandle )
12  {
13  // Request from service controller to run this job
14  ctrl.runJob ( fetchHandle );
15  }
16  return 0;
17 }
18 */