POST api/event/EventTypeInfo
Получение информации о типах отслеживаемых событий на сервере
Request Information
URI Parameters
None.
Body Parameters
EventTypeInfoRequestName | Description | Type | Additional information |
---|---|---|---|
EventStopId |
Фильтр: идентификатор глобального события (тэга), события которого нужно получить |
integer |
None. |
EventName |
Фильтр: часть текста наименования типа события, которое нужно получить |
string |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "EventStopId": 1, "EventName": "sample string 1", "Operator": 1, "Token": 1, "SiteCode": "sample string 2" }
application/xml, text/xml
Sample:
<EventTypeInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.EventRequest"> <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 2</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <EventName>sample string 1</EventName> <EventStopId>1</EventStopId> </EventTypeInfoRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EventTypeInfoResponseName | Description | Type | Additional information |
---|---|---|---|
Data |
Выходные данные |
Collection of EventTypeInfoDataRow |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "Id": 1, "EventTypeId": 1, "EventTypeName": "sample string 1", "EventStopId": 1, "EventStopName": "sample string 2" }, { "Id": 1, "EventTypeId": 1, "EventTypeName": "sample string 1", "EventStopId": 1, "EventStopName": "sample string 2" } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<EventTypeInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.EventResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message> <Data> <EventTypeInfoResponse.EventTypeInfoDataRow> <EventStopId>1</EventStopId> <EventStopName>sample string 2</EventStopName> <EventTypeId>1</EventTypeId> <EventTypeName>sample string 1</EventTypeName> <Id>1</Id> </EventTypeInfoResponse.EventTypeInfoDataRow> <EventTypeInfoResponse.EventTypeInfoDataRow> <EventStopId>1</EventStopId> <EventStopName>sample string 2</EventStopName> <EventTypeId>1</EventTypeId> <EventTypeName>sample string 1</EventTypeName> <Id>1</Id> </EventTypeInfoResponse.EventTypeInfoDataRow> </Data> </EventTypeInfoResponse>