Очень примитивно, но работает на OC 1.5.x
создайте файлик turbosms.php (положить в папку system/smsgate)
Содержимое файла:
<?php
final class TurboSms extends SmsGate {
public function send() {
$client = new SoapClient ('http://turbosms.in.ua/api/wsdl.html');
$auth = Array (
'login' => $this->username,
'password' => $this->password
);
$result = $client->Auth($auth);
if($result){
$sms = Array (
'sender' => $this->from,
'destination' => $this->to,
'text' => $this->message
);
return $client->SendSMS ($sms);
}else{
error_log('Turbo SMS AUTH_ERROR');
}
}
}
?>