GET api/Sms/AgentGetConfig

Отправляет конфигурацию для SMPP клиента. Параметры конфигурации определяются на основе IP адреса, с которого пришел запрос.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of AgentGetConfig
NameDescriptionTypeAdditional information
CheckTimeout

Таймаут проверки новых сообщений на отправку

integer

None.

GetMessages

Ссылка на АПИ для получения новых сообщений

string

None.

SetMessageSended

Ссылка на АПИ для установки статуса "Отправлено"

string

None.

SetMessageDelivrd

Ссылка на АПИ для установки статуса "Доставлено"

string

None.

Address

IP-адрес SMPP сервера

string

None.

Port

Порт SMPP сервера

integer

None.

User

Авторизация на SMPP сервере - имя пользователя

string

None.

Password

Авторизация на SMPP сервере - пароль

string

None.

AlfaName

Альфаимя, под которым нужно отправлять сообщения

string

None.

SourceAddrNPI

SourceAddrNPI = 0

byte

None.

SourceAddrTON

SourceAddrTON = 0

byte

None.

PriorityFlag

PriorityFlag = 0

byte

None.

DestAddrTON

DestAddrTON = 0

byte

None.

DestAddrNPI

DestAddrNPI = 0

byte

None.

ServerId

ServerId = 0

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CheckTimeout": 1,
    "GetMessages": "sample string 2",
    "SetMessageSended": "sample string 3",
    "SetMessageDelivrd": "sample string 4",
    "Address": "sample string 5",
    "Port": 6,
    "User": "sample string 7",
    "Password": "sample string 8",
    "AlfaName": "sample string 9",
    "SourceAddrNPI": 64,
    "SourceAddrTON": 64,
    "PriorityFlag": 64,
    "DestAddrTON": 64,
    "DestAddrNPI": 64,
    "ServerId": 15
  },
  {
    "CheckTimeout": 1,
    "GetMessages": "sample string 2",
    "SetMessageSended": "sample string 3",
    "SetMessageDelivrd": "sample string 4",
    "Address": "sample string 5",
    "Port": 6,
    "User": "sample string 7",
    "Password": "sample string 8",
    "AlfaName": "sample string 9",
    "SourceAddrNPI": 64,
    "SourceAddrTON": 64,
    "PriorityFlag": 64,
    "DestAddrTON": 64,
    "DestAddrNPI": 64,
    "ServerId": 15
  }
]

application/xml, text/xml

Sample:
<ArrayOfAgentGetConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data.Models.dto">
  <AgentGetConfig>
    <Address>sample string 5</Address>
    <AlfaName>sample string 9</AlfaName>
    <CheckTimeout>1</CheckTimeout>
    <DestAddrNPI>64</DestAddrNPI>
    <DestAddrTON>64</DestAddrTON>
    <GetMessages>sample string 2</GetMessages>
    <Password>sample string 8</Password>
    <Port>6</Port>
    <PriorityFlag>64</PriorityFlag>
    <ServerId>15</ServerId>
    <SetMessageDelivrd>sample string 4</SetMessageDelivrd>
    <SetMessageSended>sample string 3</SetMessageSended>
    <SourceAddrNPI>64</SourceAddrNPI>
    <SourceAddrTON>64</SourceAddrTON>
    <User>sample string 7</User>
  </AgentGetConfig>
  <AgentGetConfig>
    <Address>sample string 5</Address>
    <AlfaName>sample string 9</AlfaName>
    <CheckTimeout>1</CheckTimeout>
    <DestAddrNPI>64</DestAddrNPI>
    <DestAddrTON>64</DestAddrTON>
    <GetMessages>sample string 2</GetMessages>
    <Password>sample string 8</Password>
    <Port>6</Port>
    <PriorityFlag>64</PriorityFlag>
    <ServerId>15</ServerId>
    <SetMessageDelivrd>sample string 4</SetMessageDelivrd>
    <SetMessageSended>sample string 3</SetMessageSended>
    <SourceAddrNPI>64</SourceAddrNPI>
    <SourceAddrTON>64</SourceAddrTON>
    <User>sample string 7</User>
  </AgentGetConfig>
</ArrayOfAgentGetConfig>