This git repo gives you a sample code to interact with ISABELA API. There is a sample code built to the linux and gcc compiler and available on the linux-gcc branch.
Install on Ubuntu
- Download the code:
git clone https://github.com/dgraposo/TRCtest.git
-
Install all the missing libraries with apt-get (gcc,clang,libtool,autoconf,automake), see the instructions
-
Run the following commands in json-c path:
sh autogen.sh
./configure
make
make install (need sudo)
make check
- Install libcurl:
sudo apt-get install libcurl4-gnutls-dev
- Add the library to the environment variables:
export LD_RUN_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib/
- Compile the application using gcc:
gcc main.c -o main -lcurl -ljson-c
The examples available in the main() allow the retreive of all questions, answers, and also to submit new answers or to update existing ones.