POST api/apple/SendPush
Отправка push
Request Information
URI Parameters
None.
Body Parameters
SendPushRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Title |
Заголовок |
string |
None. |
| Text |
Текст |
string |
None. |
| Image |
Изображение |
string |
None. |
| Device |
Токен устройства |
string |
None. |
| AuthKey |
Приватный ключ сертификата |
string |
None. |
| KeyID |
Ключ dev-аккаунта |
string |
None. |
| TeamID |
Идентификатор команды |
string |
None. |
| BundleID |
Идентификатор пакета |
string |
None. |
| TypeOpen |
TypeOpen |
string |
None. |
| IdTypeOpen |
IdTypeOpen |
string |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Title": "sample string 1",
"Text": "sample string 2",
"Image": "sample string 3",
"Device": "sample string 4",
"AuthKey": "sample string 5",
"KeyID": "sample string 6",
"TeamID": "sample string 7",
"BundleID": "sample string 8",
"TypeOpen": "sample string 9",
"IdTypeOpen": "sample string 10",
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 11"
}
application/xml, text/xml
Sample:
<SendPushRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.AppleRequest"> <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator> <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 11</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <AuthKey>sample string 5</AuthKey> <BundleID>sample string 8</BundleID> <Device>sample string 4</Device> <IdTypeOpen>sample string 10</IdTypeOpen> <Image>sample string 3</Image> <KeyID>sample string 6</KeyID> <TeamID>sample string 7</TeamID> <Text>sample string 2</Text> <Title>sample string 1</Title> <TypeOpen>sample string 9</TypeOpen> </SendPushRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SendPushResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
Успешно или нет |
boolean |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"ErrorCode": 2,
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<SendPushResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.AppleResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">2</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message> <Success>true</Success> </SendPushResponse>