Get property list
Gets the list of properties of group products
- Parameters
- Advanced call ?
Function GetPropertyList(Val Parameters = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Parameters | --auth | Structure Of String | ✖ | Authorization parameters. See GetAuthParameters |
Returns
Map Of KeyAndValue - serialized JSON response from VK
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Parameters = GetVKParameters();
Result = OPI_VK.GetPropertyList(Parameters);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint vk GetPropertyList \
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
:: JSON data can also be passed as a path to a .json file
oint vk GetPropertyList ^
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
Result
[
{
"id": 5860,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11268,
"title": "Новое имя варианта"
},
{
"id": 11269,
"title": "Синий"
},
{
"id": 11270,
"title": "Красный"
}
]
},
{
"id": 5864,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11280,
"title": "Новое имя варианта"
},
{
"id": 11281,
"title": "Синий"
},
{
"id": 11282,
"title": "Красный"
}
]
},
{
"id": 5865,
"title": "Цвет (изм.)",
"type": "text",
"variants": []
},
{
"id": 5866,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11283,
"title": "Новое имя варианта"
},
{
"id": 11284,
"title": "Синий"
},
{
"id": 11285,
"title": "Красный"
}
]
},
{
"id": 5867,
"title": "Цвет",
"type": "text",
"variants": []
},
{
"id": 5868,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11286,
"title": "Желтый"
}
]
},
{
"id": 5869,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11287,
"title": "Новое имя варианта"
},
{
"id": 11288,
"title": "Синий"
},
{
"id": 11289,
"title": "Красный"
}
]
},
{
"id": 5870,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11290,
"title": "Новое имя варианта"
},
{
"id": 11291,
"title": "Синий"
},
{
"id": 11292,
"title": "Красный"
}
]
},
{
"id": 5871,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11293,
"title": "Новое имя варианта"
},
{
"id": 11294,
"title": "Синий"
},
{
"id": 11295,
"title": "Красный"
}
]
},
{
"id": 5872,
"title": "Цвет",
"type": "text",
"variants": []
},
{
"id": 5873,
"title": "Color (change.)",
"type": "text",
"variants": [
{
...