Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 837 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 837 Bytes

DotNet.OpenCNAM

a really easy to use opencnam library written in .net

this library uses opencnam as a backend.

installation

you can install from NuGet, the best .net package manager :)

PM> Install-Package DotNet.OpenCNAM

or you can be a badass and compile from source

usage

for a simple lookup (note: these are restricted to 60 an hour):

// A lookup for 'GOOGLE INC'
var response = OpenCNAM.Lookup("+16502530000");

to perform an authenticated lookup:

OpenCNAM.AccountSID = "xxx";
OpenCNAM.AuthToken = "xxx";

var response = OpenCNAM.Lookup("+16502530000", true);

limits

The opencnam API used as a backend limits you to no more than 60 requests per hour (using their free tier).