Get selections by ID
Gets the list of selections by array of IDs
- Parameters
- Advanced call ?
Function GetSelectionsByID(Val Selections, Val Parameters = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Selections | --sels | String, Array of String | ✔ | Selection IDs |
| 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();
Selection = "144";
Result = OPI_VK.GetSelectionsByID(Selection, Parameters);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint vk GetSelectionsByID \
--sels 153 \
--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 GetSelectionsByID ^
--sels 153 ^
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
Result
{
"response": {
"count": 1,
"items": [
{
"id": 153,
"owner_id": -218861756,
"title": "EditedCollection",
"count": 0,
"updated_time": 1779802282,
"is_main": false,
"is_hidden": false,
"photo": {
"album_id": -53,
"date": 1779802282,
"id": 457264595,
"owner_id": -218861756,
"sizes": [
{
"height": 54,
"type": "s",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 120,
"type": "m",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 480,
"type": "x",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 810,
"type": "y",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 960,
"type": "z",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 1920,
"type": "w",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 81,
"type": "o",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 180,
"type": "p",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 270,
"type": "q",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 405,
"type": "r",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
},
{
"height": 1920,
"type": "base",
"width": "***",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN..."
}
],
"text": "",
"user_id": 100,
"web_view_token": "***",
"has_tags": false,
"orig_photo": {
"height": 1920,
"type": "base",
"url": "https://sun9-73.userapi.com/s/v1/ig2/FjLOt9BgvsSGe4kYuc5NdWDtj3C6MyfePyIIPvH_T91H31i6R6vOHJGIrwG99mN...",
"width": "***"
}
}
}
]
}
}