Examples for Kandy.io C++ SMS Library.
-
Open terminal window.
-
Install prerequisites.
-
Update local package lists
sudo apt update
-
Install libcurl
sudo apt install libcurl4-openssl-dev
-
Install cmake
sudo apt install cmake
-
-
Clone Kandy C++ SMS Library Examples
git clone https://github.com/aharshac/KandyCppLibExamples.git
-
Change directory to KandyCppLibExamples
cd KandyCppLibExamples
-
Install Kandy C++ SMS Library as a submodule.
This will initialize the submodule atlib/kandy
.
git submodule add https://github.com/aharshac/KandyCpp.git lib/kandy
-
Download kandy library files.
git submodule update --init --recursive
-
Add Kandy authentication data to source files in
src
directory.
Also add personal data, like phone numbers. -
Build cmake generator.
Only once per pull or commit.
cmake -G "Unix Makefiles"
-
Build project output.
make
-
Run examples in
bin
directory.
Ex:./bin/sms_test