PHP Example

From CDYNE Wiki
Jump to navigation Jump to search

Check Phone Number

 1 <?php
 2 
 3 // Create a new soap client 
 4 $client = new SoapClient('http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl');
 5  
 6 $param = array(
 7  'PhoneNumber' => '17575449510',
 8  'LicenseKey' => 'YOUR LICENSE KEY',
 9 );
10  
11 $result = $client->CheckPhoneNumber($param);
12  
13 // View the response from CDYNE
14 print_r ($result);
15 
16 ?>

Check Phone Numbers

 1 <?php
 2 
 3 $client = new SoapClient('http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl'); 
 4 
 5 
 6 // Specify required info to send a text message
 7 $param = array(                
 8  'PhoneNumbers' => array('17575449510','18009843710'),
 9  'LicenseKey' => 'YOUR LICENSE KEY'
10  ); 
11 
12 $result = $client->CheckPhoneNumbers($param);
13 
14 print_r($result);
15 ?>