POST api/SendOneToOne

ارسال نظیر به نظیر

Request Information

URI Parameters

None.

Body Parameters

SendOneToOneModel
NameDescriptionTypeAdditional information
Messages

آرایه ای از پیام های که می خواهید ارسال کنید

Collection of Message

Required

UserName

نام کاربری

string

None.

Password

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

string

None.

DomainName

نام دامنه

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Messages": [
    {
      "Smsbody": "sample string 1",
      "SenderNumber": "sample string 2",
      "Mobile": "sample string 3",
      "Id": 4
    },
    {
      "Smsbody": "sample string 1",
      "SenderNumber": "sample string 2",
      "Mobile": "sample string 3",
      "Id": 4
    }
  ],
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "DomainName": "sample string 3"
}

application/xml, text/xml

Sample:
<SendOneToOneModel 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>
  <Messages>
    <Message>
      <Id>4</Id>
      <Mobile>sample string 3</Mobile>
      <SenderNumber>sample string 2</SenderNumber>
      <Smsbody>sample string 1</Smsbody>
    </Message>
    <Message>
      <Id>4</Id>
      <Mobile>sample string 3</Mobile>
      <SenderNumber>sample string 2</SenderNumber>
      <Smsbody>sample string 1</Smsbody>
    </Message>
  </Messages>
</SendOneToOneModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOneToOneCode
NameDescriptionTypeAdditional information
ReturnCodes

کدهای ارسالی

Collection of integer

None.

Messege

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

string

None.

Status

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

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ReturnCodes": [
    1,
    2
  ],
  "Messege": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<ResponseOneToOneCode 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>
  <ReturnCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ReturnCodes>
</ResponseOneToOneCode>