tuckercr / opencnam-c

Sample code for OpenCNAM in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opencnam-c sample

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

About

Sample code for OpenCNAM in C

License:Apache License 2.0


Languages

Language:C 97.5%Language:Makefile 2.5%