Skip to content

Commit f37372f

Browse files
author
Mark Lewin
committed
Change number insight replaceable variable names
1 parent 7c57f7a commit f37372f

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

.env-example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ APPLICATION_ID=635c2797-9295-4cdf-9232-d275f75ff096
44
PRIVATE_KEY=private.key
55
FROM=
66
TO_NUMBER=
7+
8+
# Number Insight building blocks
9+
INSIGHT_NUMBER=

number-insights/advanced-cnam.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
66
$client = new \Nexmo\Client($basic);
77

8-
$insights = $client->insights()->advancedCnam(NEXMO_TO_NUMBER);
8+
$insights = $client->insights()->advancedCnam(INSIGHT_NUMBER);
99

1010
switch($insights->getReachable()) {
1111
case 'reachable':

number-insights/advanced.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
66
$client = new \Nexmo\Client($basic);
77

8-
$insights = $client->insights()->advanced(NEXMO_TO_NUMBER);
8+
$insights = $client->insights()->advanced(INSIGHT_NUMBER);
99

1010
switch($insights->getReachable()) {
1111
case 'reachable':

number-insights/basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
66
$client = new \Nexmo\Client($basic);
77

8-
$insights = $client->insights()->basic(NEXMO_TO_NUMBER);
8+
$insights = $client->insights()->basic(INSIGHT_NUMBER);
99

1010
echo "The number ".$insights->getNationalFormatNumber()." is located in " . $insights->getCountryName();

number-insights/standard-cnam.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
66
$client = new \Nexmo\Client($basic);
77

8-
$insights = $client->insights()->standardCnam(NEXMO_TO_NUMBER);
8+
$insights = $client->insights()->standardCnam(INSIGHT_NUMBER);
99

1010
echo "The number ".$insights->getNationalFormatNumber()." is registered to the network " . $insights->getCurrentCarrier()['name'].", and is owned by ".$insights->getCallerName();

number-insights/standard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
66
$client = new \Nexmo\Client($basic);
77

8-
$insights = $client->insights()->standard(NEXMO_TO_NUMBER);
8+
$insights = $client->insights()->standard(INSIGHT_NUMBER);
99

1010
echo "The number ".$insights->getNationalFormatNumber()." is registered to the network " . $insights->getCurrentCarrier()['name'];

0 commit comments

Comments
 (0)