From 0ae0fd43c83d9cd09c45476e10447f8ad3fa093f Mon Sep 17 00:00:00 2001 From: James Finstrom Date: Mon, 29 Feb 2016 10:44:53 -0700 Subject: [PATCH] FREEPBX-11702 switch to v3 api --- sources/source-OpenCNAM.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/source-OpenCNAM.module b/sources/source-OpenCNAM.module index db05fbaa..469a63db 100644 --- a/sources/source-OpenCNAM.module +++ b/sources/source-OpenCNAM.module @@ -28,11 +28,11 @@ class OpenCNAM extends superfecta_base { if ($run_param['Account_SID'] == null or $run_param['Auth_Token'] == null) { // Hobbyist Tier URL (limited to 60 cached lookups per hour) - $url = "https://api.opencnam.com/v2/phone/" . $thenumber . "?format=pbx"; + $url = "https://api.opencnam.com/v3/phone/" . $thenumber . "?format=pbx"; } else { // Professional Tier URL (unlimited real-time CNAM lookups) - $url = "https://api.opencnam.com/v2/phone/" . $thenumber . "?format=pbx&ref=possa&account_sid=".$run_param['Account_SID']."&auth_token=".$run_param['Auth_Token']; + $url = "https://api.opencnam.com/v3/phone/" . $thenumber . "?format=pbx&ref=possa&account_sid=".$run_param['Account_SID']."&auth_token=".$run_param['Auth_Token']; } $sname = $this->get_url_contents($url);