POST api/MsgAggregator/SendMessage
Request Information
URI Parameters
None.
Body Parameters
AddMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Type | integer |
None. |
|
| Phone | string |
None. |
|
| Text | string |
None. |
|
| Title | string |
None. |
|
| Click | string |
None. |
|
| SendAt | string |
None. |
|
| ExpiredAt | string |
None. |
|
| Priority | Collection of string |
None. |
|
| TranslitSMS | boolean |
None. |
|
| SendAllFree | boolean |
None. |
|
| SendAllPay | boolean |
None. |
|
| Server | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Type": 1,
"Phone": "sample string 2",
"Text": "sample string 3",
"Title": "sample string 4",
"Click": "sample string 5",
"SendAt": "sample string 6",
"ExpiredAt": "sample string 7",
"Priority": [
"sample string 1",
"sample string 2"
],
"TranslitSMS": true,
"SendAllFree": true,
"SendAllPay": true,
"Server": 1
}
application/xml, text/xml
Sample:
<AddMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Models.dto">
<Click>sample string 5</Click>
<ExpiredAt>sample string 7</ExpiredAt>
<Phone>sample string 2</Phone>
<Priority xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Priority>
<SendAllFree>true</SendAllFree>
<SendAllPay>true</SendAllPay>
<SendAt>sample string 6</SendAt>
<Server>1</Server>
<Text>sample string 3</Text>
<Title>sample string 4</Title>
<TranslitSMS>true</TranslitSMS>
<Type>1</Type>
</AddMessage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MessageInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Created | string |
None. |
|
| Type | integer |
None. |
|
| Phone | string |
None. |
|
| Text | string |
None. |
|
| Title | string |
None. |
|
| Click | string |
None. |
|
| SendAt | string |
None. |
|
| ExpiredAt | string |
None. |
|
| Priority | string |
None. |
|
| TranslitSMS | boolean |
None. |
|
| Methods | Collection of MessageInfoDetail |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Created": "sample string 2",
"Type": 3,
"Phone": "sample string 4",
"Text": "sample string 5",
"Title": "sample string 6",
"Click": "sample string 7",
"SendAt": "sample string 8",
"ExpiredAt": "sample string 9",
"Priority": "sample string 10",
"TranslitSMS": true,
"Methods": [
{
"Id": 1,
"MessageId": 2,
"Method": "sample string 3",
"Created": "sample string 4",
"Sended": "sample string 5",
"Delivrd": "sample string 6",
"Identificator": "sample string 7",
"Status": 8,
"Description": "sample string 9"
},
{
"Id": 1,
"MessageId": 2,
"Method": "sample string 3",
"Created": "sample string 4",
"Sended": "sample string 5",
"Delivrd": "sample string 6",
"Identificator": "sample string 7",
"Status": 8,
"Description": "sample string 9"
}
]
}
application/xml, text/xml
Sample:
<MessageInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Models.dto">
<Click>sample string 7</Click>
<Created>sample string 2</Created>
<ExpiredAt>sample string 9</ExpiredAt>
<Id>1</Id>
<Methods>
<MessageInfoDetail>
<Created>sample string 4</Created>
<Delivrd>sample string 6</Delivrd>
<Description>sample string 9</Description>
<Id>1</Id>
<Identificator>sample string 7</Identificator>
<MessageId>2</MessageId>
<Method>sample string 3</Method>
<Sended>sample string 5</Sended>
<Status>8</Status>
</MessageInfoDetail>
<MessageInfoDetail>
<Created>sample string 4</Created>
<Delivrd>sample string 6</Delivrd>
<Description>sample string 9</Description>
<Id>1</Id>
<Identificator>sample string 7</Identificator>
<MessageId>2</MessageId>
<Method>sample string 3</Method>
<Sended>sample string 5</Sended>
<Status>8</Status>
</MessageInfoDetail>
</Methods>
<Phone>sample string 4</Phone>
<Priority>sample string 10</Priority>
<SendAt>sample string 8</SendAt>
<Text>sample string 5</Text>
<Title>sample string 6</Title>
<TranslitSMS>true</TranslitSMS>
<Type>3</Type>
</MessageInfo>