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": 5885,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11323,
"title": "Новое имя варианта"
},
{
"id": 11324,
"title": "Синий"
},
{
"id": 11325,
"title": "Красный"
}
]
},
{
"id": 5886,
"title": "Цвет",
"type": "text",
"variants": []
},
{
"id": 5887,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11326,
"title": "Желтый"
},
{
"id": 11327,
"title": "Синий"
}
]
},
{
"id": 5888,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11328,
"title": "Новое имя варианта"
},
{
"id": 11329,
"title": "Синий"
},
{
"id": 11330,
"title": "Красный"
}
]
},
{
"id": 5889,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11331,
"title": "Новое имя варианта"
},
{
"id": 11332,
"title": "Синий"
},
{
"id": 11333,
"title": "Красный"
}
]
},
{
"id": 5890,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11334,
"title": "Новое имя варианта"
},
{
"id": 11335,
"title": "Синий"
},
{
"id": 11336,
"title": "Красный"
}
]
},
{
"id": 5891,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11337,
"title": "Желтый"
}
]
},
{
"id": 5893,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11338,
"title": "Новое имя варианта"
},
{
"id": 11339,
"title": "Синий"
},
{
"id": 11340,
"title": "Красный"
}
]
},
{
"id": 5894,
"title": "Цвет (изм.)",
"type": "text",
"variants": [
{
"id": 11341,
"title": "Новое имя варианта"
},
{
"id": 11342,
"title": "Синий"
},
{
"id": 11343,
"title": "Красный"
}
]
},
{
"id": 5895,
"title": "Цвет (изм.)",
...