aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-wsj1-test.cpp
blob: 059c845b56c5e77f2ef630ba1e6a9dc37488e602 (plain)
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;
}