ContactCenterComplianceAPI 1.1.0

.NET Framework 4.6.1
NuGet\Install-Package ContactCenterComplianceAPI -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package ContactCenterComplianceAPI --version 1.1.0
<PackageReference Include="ContactCenterComplianceAPI" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ContactCenterComplianceAPI --version 1.1.0
#r "nuget: ContactCenterComplianceAPI, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ContactCenterComplianceAPI as a Cake Addin
#addin nuget:?package=ContactCenterComplianceAPI&version=1.1.0

// Install ContactCenterComplianceAPI as a Cake Tool
#tool nuget:?package=ContactCenterComplianceAPI&version=1.1.0

Package to interface and use the available API endpoints of Contact Center Compliance. Usage requires an account with Contact Center Compliance.

See www.dnc.com to sign up.

API Consumption App Reference

https://github.com/KentAguilarCCC/ContactCenterComplianceAPI_SampleApp

Getting Started

  • Import the ContactCenterCompliance API packages from NuGet.
  • Reference ContactCenterCompliance namespace in your program, eg "using ContactCenterCompliance;"
  • Instantiate the CCCApi class indicating your API key → var client = new CCCApi("--- API Key ---");

Scrubbing a Phone Number or Multiple Phone Numbers

CCCApi client = new CCCApi("--- API Key ---");

//sample phone numbers
List<string> shortPhoneNumberList = new List<string>() {
				"6234928976",
				"9545031806",
				"2675466417"
			 };

List<ScrubResponse> scrubResponseList = client.Scrub(shortPhoneNumberList, "ProjectID");

Litigator Only Scrub

CCCApi client = new CCCApi("--- API Key ---");

//sample phone numbers
List<string> shortPhoneNumberList = new List<string>() {
				"6234928976",
				"9545031806",
				"2675466417"
			 };

List<LitigatorResponse> litigatorResponseList = client.LitigatorScrub(shortPhoneNumberList)

Project Settings

  • Creating a project using project id and project name
CCCApi client = new CCCApi("--- API Key ---");
Project project = client.CreateProject("ProjectID", "ProjectName")
  • Deactivate a project using project id
CCCApi client = new CCCApi("--- API Key ---");
Project project = client.DeactivateProject("ProjectID")
  • Enumerating projects using a project id
CCCApi client = new CCCApi("--- API Key ---");
Project project = client.EnumerateProjects("ProjectID")

Add to or Delete from Internal DNC List

  • Given the following initiated routines:
CCCApi client = new CCCApi("--- API Key ---");

//sample phone numbers
List<string> shortPhoneNumberList = new List<string>() {
				"6234928976",
				"9545031806",
				"2675466417"
			 };
  • Adding of IDNC with phone number list and project id
client.AddIDNC(shortPhoneNumberList, "ProjectID");
  • Removing IDNC with phone number list and project id
client.RemoveIDNC(shortPhoneNumberList, "ProjectID");
  • Getting IDNC count using a project id
IDNCDetail idncDetail = client.GetIDNCCount("ProjectID");
  • Getting IDNC status using phone number list and project id
List<IDNCStatus> idncStatusList = client.GetIDNCStatus(shortPhoneNumberList, "ProjectID");

Add to EBR List

  • Given the following initiated routes:
CCCApi client = new CCCApi("--- API Key ---");

//sample ebr list
static List<Ebr> ebrList = new List<Ebr>() {
				new Ebr{
					PhoneNo = "7272046008",
					DateOfLastContact = DateTime.Parse("2011-06-14"),
					Type = EbrType.Sale
				},
				new Ebr{
					PhoneNo = "8773404100",
					DateOfLastContact = DateTime.Parse("2011-07-02"),
					Type = EbrType.Inquiry
				}
			};
//sample phone numbers
List<string> shortPhoneNumberList = new List<string>() {
				"6234928976",
				"9545031806",
				"2675466417"
			 };
  • Adding EBR List with project id
client.AddEBR(ebrList, "ProjectID");
  • Scrubbing Phone Numbers and adding EBR List with project and campaign id
List<ScrubResponse> scrubResponseList = client.ScrubPlusAddEBR(shortPhoneNumberList, ebrList, "ProjectID", "CampaignID");

On-demand processing for SFTP Uploads

  • Notify if SFTP Upload is complete
CCCApi client = new CCCApi("--- API Key ---");
client.NotifyOfSFTPComplete();

TCPA Reassigned ID aka Identity Verification

CCCApi client = new CCCApi("--- API Key ---");
Reassigned reassigned = new Reassigned {
				PhoneNumber = "2012001362",
				FirstName = "FirstName",
				LastName = "LastName",
				Address1 = "Address1",
				Address2 = "",
				City = "New Jersey",
				State = "NJ",
				PostalCode = "007302",
				ConsentDate = DateTime.Now,
				ReferenceId = "ReferenceId"
			};
			
ReassignedIDResponse reassignedIDResponse = client.ReassignedID(reassigned);

Residential or Business Phone Number Identification

CCCApi client = new CCCApi("--- API Key ---");
ResOrBusinessResponse resOrBusinessResponse = client.ResOrBusiness("7072842774");

ID Premium

CCCApi client = new CCCApi("--- API Key ---");
IDPremiumResponse idPremiumResponse = client.IDPremium("7072842774");

TCPA Reassigned Authority

  • Check if a phone number was reassigned after a specific date.
  • TCPA Reassigned Authority is our best method to check if a phone was reassigned and uses the most comprehensive data source going back further than RND.
var client = new CCCApi("0308A03FE18FE1BE31F17DDA84407BF988223C86208D");
var dateOfConsent = DateTime.Parse("09/22/2020");
var response = client.ReassignedAuthority("7072390222", dateOfConsent);

if (response.IsReassigned == true)
{
    Console.WriteLine("Phone number was reassigned after consent date. Do not call the phone's owner is likely different than the person that gave you consent to call.");
}
else
{
    Console.WriteLine("Phone number was NOT reassigned after consent date. Okay to call if following all other applicable laws");
}
Console.ReadLine();
Product Versions
.NET Framework net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 50 9/14/2022
1.0.8 679 11/21/2018
1.0.7 500 11/15/2018
1.0.4 527 10/31/2018

Added TCPA Reassigned Authority support.