This project demonstrates how to call the OpenCNAM v3 REST API in C using libcurl.
The project compiles to a small command line tool "opencnam" which can be used for basic CNAM queries:
$ ./opencnam -p +16284003994
response=[TELO]
To run, update opencnam.ini
with your OpenCNAM SID + Auth Token:
base_uri = https://api.opencnam.com/v3/phone/
sid = <enter_here>
auth_token = <enter_here>
The project has two dependencies:
and can be built with
$ make -f Makefile