POST api/client/SetClientDevice

Записать данные об устройстве Участника для отправки PUSH-уведомлений

Request Information

URI Parameters

None.

Body Parameters

AddDeviceRequest
NameDescriptionTypeAdditional information
Device_token

Token устройства

string

None.

OSRegistrator

зарегестрированная операционная система

string

None.

Client

ID клиента

integer

None.

Operator

ID оператора

integer

None.

BluetoothId

Идентификатор блютуз адаптера устройства клиента

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Device_token": "sample string 1",
  "OSRegistrator": "sample string 2",
  "Client": 1,
  "Operator": 1,
  "BluetoothId": "sample string 3"
}

application/xml, text/xml

Sample:
<AddDeviceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <BluetoothId>sample string 3</BluetoothId>
  <Client>1</Client>
  <Device_token>sample string 1</Device_token>
  <OSRegistrator>sample string 2</OSRegistrator>
  <Operator>1</Operator>
</AddDeviceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddDeviceResponse
NameDescriptionTypeAdditional information
ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<AddDeviceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</AddDeviceResponse>