Skip to content

tuckercr/opencnam-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published