POST api/mobile/ClientDynamicMobileConfig
Получение динамических данных конфига моб. приложения (экраны/компоненты) для конкретного клиента
Request Information
URI Parameters
None.
Body Parameters
ClientDynamicMobileConfigRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Client |
Идентификатор клиента |
integer |
None. |
| ComponentTypeId |
Идентификатор компонента |
integer |
None. |
| ScreenTypeId |
Идентификатор экрана |
integer |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Client": 1,
"ComponentTypeId": 1,
"ScreenTypeId": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 1"
}
application/xml, text/xml
Sample:
<ClientDynamicMobileConfigRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MobileRequest"> <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 1</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <Client>1</Client> <ComponentTypeId>1</ComponentTypeId> <ScreenTypeId>1</ScreenTypeId> </ClientDynamicMobileConfigRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientDynamicMobileConfigResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Data |
Массив выходных данных |
Collection of ClientDynamicMobileConfigDataRow |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": [
{
"Id": 1,
"Image": "sample string 1",
"Text": "sample string 2",
"OutUrl": "sample string 3"
},
{
"Id": 1,
"Image": "sample string 1",
"Text": "sample string 2",
"OutUrl": "sample string 3"
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<ClientDynamicMobileConfigResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MobileResponse">
<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>
<ClientDynamicMobileConfigResponse.ClientDynamicMobileConfigDataRow>
<Id>1</Id>
<Image>sample string 1</Image>
<OutUrl>sample string 3</OutUrl>
<Text>sample string 2</Text>
</ClientDynamicMobileConfigResponse.ClientDynamicMobileConfigDataRow>
<ClientDynamicMobileConfigResponse.ClientDynamicMobileConfigDataRow>
<Id>1</Id>
<Image>sample string 1</Image>
<OutUrl>sample string 3</OutUrl>
<Text>sample string 2</Text>
</ClientDynamicMobileConfigResponse.ClientDynamicMobileConfigDataRow>
</Data>
</ClientDynamicMobileConfigResponse>