$username = 'username';
$password = 'password';
$api = new MelipayamakApi($username,$password);
$sms = $api->sms('soap');
$sms->SendBulkSpeechText($title, $body, $receivers, $DateToSend, $repeatCount);
//بدون نیاز به پکیج گیت هاب Procedural PHP نمونه کدهای
ini_set("soap.wsdl_cache_enabled", 0);
try {
$client = new SoapClient("http://api.payamak-panel.com/post/Voice.asmx?wsdl", [
"encoding" => "UTF-8"
]);
$params = [
"username" => "your_username", // نام کاربری پنل
"password" => "your_password", // رمز عبور پنل
"title" => "", // عنوان دلخواه برای گزارش
"body" => "", // متنی که به صوت تبدیل میشود
"receivers" => "", // شمارهها با کاما جدا شوند
"DateToSend" => "2025-10-07T10:30:00", // زمان ارسال (ISO format)
"RepeatCount" => // تعداد تلاش تماس (حداکثر 4 بار)
];
// فراخوانی متد SendBulkSpeechText
$response = $client->SendBulkSpeechText($params);
// خروجی نتیجه
var_dump($response->SendBulkSpeechTextResult);
} catch (SoapFault $e) {
echo "خطا در ارتباط با وبسرویس:\n";
echo $e->getMessage();
}
const username = 'username';
const password = 'password';
const api = new MelipayamakApi(username,password);
const sms = api.sms('soap');
sms.sendBulkSpeechText(title, body, receivers, DateToSend, repeatCount);
final String username = "username";
final String password = "password";
SoapClient soapClient = new SoapClient(username, password);
soapClient.SendBulkSpeechText(title, body, receivers, DateToSend, repeatCount);
const string username = "username";
const string password = "password";
VoiceSoapClient soapClient = new VoiceSoapClient();
soapClient.SendBulkSpeechText(username, password, title, body, receivers, DateToSend, repeatCount);
Const username As String = "username"
Const password As String = "password"
Dim soapClient As New VoiceSoapClient()
soapClient.SendBulkSpeechText(title, receivers, DateToSend, repeatCount)
let username: String = "username"
let password: String = "password"
var soapClient = SoapClient(user: username, pass: password)
soapClient.SendBulkSpeechText(title: title, body: bd, receivers: recs, DateToSend: dt, repeatCount: count)
NSString *username = @"username";
NSString *password = @"password";
SoapClient *soapClient = [[SoapClient alloc] initCred:username password:password];
[soapClient SendBulkSpeechText:title body:body receivers:receivers DateToSend:DateToSend repeatCount:repeatCount];
username = 'username'
password = 'password'
api = Api(username,password)
sms = api.sms('soap')
sms.send_bulk_speech_text(self, title, body, receivers, DateToSend, repeatCount)
final String username = "username";
final String password = "password";
SoapClient soapClient = new SoapClient(username, password);
soapClient.SendBulkSpeechText(title, body, receivers, DateToSend, repeatCount);
username = 'username'
password = 'password'
api = Melipayamakapi.new(username,password)
sms = api.sms('soap')
sms.send_bulk_speech_text(title, body, receivers, DateToSend, repeatCount)
my $username = "username";
my $password = "password";
my $soapClient = new SoapClient($username, $password);
$soapClient->SendBulkSpeechText($title, $body, $receivers, $DateToSend, $repeatCount);
local username = "username";
local password = "password";
SendBulkSpeechText(username, password, title, body, receivers, DateToSend, repeatCount);
username := "username";
password := "password";
SendBulkSpeechText(username, password, title, body, receivers, DateToSend, repeatCount);
val username = "username"
val password = "password"
val soapClient = SoapClient(username, password)
soapClient.SendBulkSpeechText(title, body, receivers, DateToSend, repeatCount)
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SendBulkSpeechTextResponse xmlns="http://tempuri.org/">
<SendBulkSpeechTextResult>int</SendBulkSpeechTextResult>
</SendBulkSpeechTextResponse>
</soap:Body>
</soap:Envelope>