Get property list
Gets the list of properties of group products
Function GetPropertyList(Val Parameters = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Parameters | --auth | Structure Of String | ✖ | Authorization JSON or path to .json |
Returns: Map Of KeyAndValue - serialized JSON response from VK
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": 509,
"title": "Color (change.)",
"type": "text",
"variants": [
{
"id": 1629,
"title": "Yellowf3f597d4-38bc-4a58-9506-01477ec7529d"
},
{
"id": 1630,
"title": "Blue51f47ff4-81e6-4394-9b2a-acaf901f5946"
},
{
"id": 1631,
"title": "Red00b87017-f2e8-427d-88ce-7ace6762d332"
}
]
},
{
"id": 549,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 1751,
"title": "Желтый494c9013-bdd8-415c-bd16-96330d63c08b"
},
{
"id": 1752,
"title": "Синий9e94071e-9b75-4b14-9849-61a6bcdc2e8c"
},
{
"id": 1753,
"title": "Красныйa015bcd7-1328-45c5-abab-a162a89dba95"
}
]
},
{
"id": 558,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 1778,
"title": "Новое имя варианта"
},
{
"id": 1779,
"title": "Синий"
},
{
"id": 1780,
"title": "Красный"
}
]
},
{
"id": 623,
"title": "Color (change.)",
"type": "text",
"variants": [
{
"id": 1976,
"title": "New variant name"
},
{
"id": 1977,
"title": "Blue"
},
{
"id": 1978,
"title": "Red"
}
]
},
{
"id": 665,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 2096,
"title": "Новое имя варианта"
},
{
"id": 2097,
"title": "Синий"
},
{
"id": 2098,
"title": "Красный"
}
]
},
{
"id": 779,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 2378,
"title": "Новое имя варианта"
},
{
"id": 2379,
"title": "Синий"
},
{
"id": 2380,
"title": "Красный"
}
]
},
{
"id": 791,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 2404,
"title": "Новое имя варианта"
},
{
"id": 2405,
"title": "Синий"
},
{
"id": 2406,
"title": "Красный"
}
]
},
{
"id": 844,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 2531,
"title": "Новое имя варианта"
},
{
"id": 2532,
"title": "Синий"
},
{
"id": 2533,
"title": "Красный"
...