PHP Example

From CDYNE Wiki
Jump to: navigation, search

Check Phone Number

<?php
 
// Create a new soap client
$client = new SoapClient('http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl');
 
$param = array(
'PhoneNumber' => '17575449510',
'LicenseKey' => 'YOUR LICENSE KEY',
);
 
$result = $client->CheckPhoneNumber($param);
 
// View the response from CDYNE
print_r ($result);
 
?>

Check Phone Numbers

<?php
 
$client = new SoapClient('http://ws.cdyne.com/phoneverify/phoneverify.asmx?wsdl');
 
 
// Specify required info to send a text message
$param = array(
'PhoneNumbers' => array('17575449510','18009843710'),
'LicenseKey' => 'YOUR LICENSE KEY'
);
 
$result = $client->CheckPhoneNumbers($param);
 
print_r($result);
?>
Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key