POST api/client/SetClientDevice
Записать данные об устройстве Участника для отправки PUSH-уведомлений
Request Information
URI Parameters
None.
Body Parameters
AddDeviceRequestName | Description | Type | Additional information |
---|---|---|---|
Device_token |
Token устройства |
string |
None. |
OSRegistrator |
зарегестрированная операционная система |
string |
None. |
Client |
ID клиента |
integer |
None. |
Operator |
ID оператора |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "Device_token": "sample string 1", "OSRegistrator": "sample string 2", "Client": 3, "Operator": 4 }
application/xml, text/xml
Sample:
<AddDeviceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <Client>3</Client> <Device_token>sample string 1</Device_token> <OSRegistrator>sample string 2</OSRegistrator> <Operator>4</Operator> </AddDeviceRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddDeviceResponseName | Description | Type | Additional 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>