ملی پیامک مستندات وب‌سرویس پیامک
ملی پیامک مستندات وب‌سرویس پیامک
ملی پیامک مستندات وب‌سرویس پیامک

وضعیت تحویل گروهی ۳

آخرین به‌روزرسانی: 13 آبان 1405

آدرس وب سرویس

متد GetDeliveries3

این متد جهت استعلام گروهی وضعیت تحویل پیامک‌ها کاربرد دارد. وضعیت تحویل چند شناسه رکورد را به‌صورت آرایه برمی‌گرداند.

پارامتر های ورودی

نام پارامترنوع پارامترتوضیحات
recId string[] اجباری کدهای مربوط به خروجی تابع ارسال
username string اجباری نام کاربری مربوط به حساب شما در سامانه
password string اجباری رمز عبور مربوط به حساب شما در سامانه

مقدار بازگشتی

نام پارامترنوع پارامترتوضیحات
ReturnValue []Int وضعیت هر رکورد. -2 بیش از سقف مجاز
3- : اطلاعات ورود نامعتبر
10- : خطای داخلی
108- : تا -110 خطاهای مشترک حساب هستند.

وضعیت تحویل گروهی ۳ از طریق URL:

https://api.payamak-panel.com/post/send.asmx/GetDeliveries3?recId=&username=&password=

GetDeliveries3
$client = new SoapClient('https://api.payamak-panel.com/post/send.asmx?wsdl', ['encoding' => 'UTF-8', 'exceptions' => true]);
$params = [
    'recId' => ['123456789'],
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_API_KEY',
];
$result = $client->__soapCall('GetDeliveries3', [$params]);
var_dump($result);
import soap from "soap";
const [client] = await soap.createClientAsync("https://api.payamak-panel.com/post/send.asmx?wsdl");
const [result] = await client.GetDeliveries3Async({
  recId: ["123456789"],
  username: "YOUR_USERNAME",
  password: "YOUR_API_KEY",
});
console.log(result);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var requestBody = """

               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  
    
      123456789
      YOUR_USERNAME
      YOUR_API_KEY
    
  

""";
var request = HttpRequest.newBuilder().uri(URI.create("https://api.payamak-panel.com/post/send.asmx"))
    .header("Content-Type", "text/xml; charset=utf-8")
    .header("SOAPAction", "\"http://tempuri.org/GetDeliveries3\"")
    .POST(HttpRequest.BodyPublishers.ofString(requestBody)).build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
// Add https://api.payamak-panel.com/post/send.asmx?wsdl as a Connected Service before using the generated proxy.
var client = new SendSoapClient(SendSoapClient.EndpointConfiguration.SendSoap);
var request = new GetDeliveries3Request
{
    recId = new[] { "123456789" },
    username = "YOUR_USERNAME",
    password = "YOUR_API_KEY",
};
var result = await client.GetDeliveries3Async(request);
Console.WriteLine(result);
from zeep import Client
client = Client("https://api.payamak-panel.com/post/send.asmx?wsdl")
result = client.service.GetDeliveries3(
    recId=["123456789"],
    username="YOUR_USERNAME",
    password="YOUR_API_KEY",
)
print(result)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var requestBody = """

               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  
    
      123456789
      YOUR_USERNAME
      YOUR_API_KEY
    
  

""";
var request = HttpRequest.newBuilder().uri(URI.create("https://api.payamak-panel.com/post/send.asmx"))
    .header("Content-Type", "text/xml; charset=utf-8")
    .header("SOAPAction", "\"http://tempuri.org/GetDeliveries3\"")
    .POST(HttpRequest.BodyPublishers.ofString(requestBody)).build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
package main
import ("fmt"; "io"; "net/http"; "strings")
func main() {
  requestBody := `
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  
    
      123456789
      YOUR_USERNAME
      YOUR_API_KEY
    
  
`
  request, err := http.NewRequest(http.MethodPost, "https://api.payamak-panel.com/post/send.asmx", strings.NewReader(requestBody)); if err != nil { panic(err) }
  request.Header.Set("Content-Type", "text/xml; charset=utf-8")
  request.Header.Set("SOAPAction", "\"http://tempuri.org/GetDeliveries3\"")
  response, err := http.DefaultClient.Do(request); if err != nil { panic(err) }; defer response.Body.Close()
  body, err := io.ReadAll(response.Body); if err != nil { panic(err) }; fmt.Println(string(body))
}
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>
    <GetDeliveries3Response xmlns="http://tempuri.org/">
      <GetDeliveries3Result>
        <int>int</int>
        <int>int</int>
      </GetDeliveries3Result>
    </GetDeliveries3Response>
  </soap:Body>
</soap:Envelope>