POST api/Delivery1to1

دریافت وضعیت پیامک ها

Request Information

URI Parameters

None.

Body Parameters

DeliveryByIds
NameDescriptionTypeAdditional information
Ids

کدهای دریافتی از متد ارسال در سامانه

Collection of integer

None.

UserName

نام کاربری

string

None.

Password

پسورد ورود به سامانه

string

None.

DomainName

نام دامنه

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Ids": [
    1,
    2
  ],
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "DomainName": "sample string 3"
}

application/xml, text/xml

Sample:
<Delivery1to1Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RESTfulApi.Models">
  <DomainName>sample string 3</DomainName>
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </Ids>
</Delivery1to1Model>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDelivery1to1
NameDescriptionTypeAdditional information
DeliveryStatus

وضعیت پیام ها

Collection of DeliveryStatus

None.

Messege

متن خطایی که رخ داده

string

None.

Status

کد خطا. در صورتی که صفر باشد یعنی خطایی رخ نداده

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DeliveryStatus": [
    {
      "Id": 1,
      "Message": "sample string 2"
    },
    {
      "Id": 1,
      "Message": "sample string 2"
    }
  ],
  "Messege": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<ResponseDelivery1to1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RESTfulApi.Models">
  <Messege>sample string 1</Messege>
  <Status>2</Status>
  <DeliveryStatus>
    <DeliveryStatus>
      <Id>1</Id>
      <Message>sample string 2</Message>
    </DeliveryStatus>
    <DeliveryStatus>
      <Id>1</Id>
      <Message>sample string 2</Message>
    </DeliveryStatus>
  </DeliveryStatus>
</ResponseDelivery1to1>