PHP SMS

Requirements
Make sure you have PHP installed on your system. The example below uses php_soap extension, make sure it is available in you configuration as well.

Code
This code was tested using PHP 5.2.13 SendSMSAdvanced

SendSMSAdvanced( new CallRequestData('7575135494','test')); print_r($result);

class CallRequestData { public $Request; function CallRequestData($number,$text) { $this->Request = array; $this->Request['PhoneNumber'] = $number; $this->Request['Message'] = $text; $this->Request['Licensekey'] = 'LICENSE_KEY'; $this->Request['ScheduledTime'] = '2010-03-24T00:44:41.5165242Z'; $this->Request['Response'] = True; $this->Request['ResponsePostURL'] = ''; } } ?>

Result
stdClass Object (   [SendSMSAdvancedResult] => stdClass Object        ( [StatusCode] => 1 [StatusText] => Queued [Completed] => [TextID] => 1350605 [Demo] => [ScheduledTime] => 2010-03-24T00:44:41.5165242Z [Responded] => )

)

Code
This code was tested using PHP 5.2.13 SendSMSBasic  'yourphonenumber',		'LicenseKey' => 'yourlicensekey',		'Message' => 'yourmessage' );

$result = $client->SendSMSBasic($param);

print_r($result);

?>

Result
stdClass Object (   [SendSMSBasicResult] => stdClass Object        ( [StatusCode] => 1 [StatusText] => Queued [Completed] => [TextID] => 1491507 [Demo] => [ScheduledTime] => 2010-04-29T22:48:09.7991495Z [Responded] => )

)