aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-wsj1-test.cpp
blob: ff74b4b95dc5da6897f944e9625beff3157e162b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "afb-wsj1.hpp"

void onreply(const char *value){
	std::cout << value << std::endl;
    exit(0);
}

int main(int ac, char **av){
    char*uri=av[1];
    char*api =av[2];
    char*verb =av[3]; 
    char*req =av[4];
    afb::wsj1 sj1;
    char *x;
    sj1.connect(uri);
    sj1.call(api,verb,req,onreply);
	std::cin>> x;
    return EXIT_SUCCESS;
}