Перейти к основному содержимому

Получить список подборок

Получает список подборок товаров

Функция ПолучитьСписокПодборок(Знач Параметры = "") Экспорт

ПараметрCLI опцияТипОбяз.Назначение
Параметры--authСтруктура из СтрокаJSON авторизации или путь к .json

Возвращаемое значение: Соответствие Из КлючИЗначение - Массив соответствий подборок


Пример использования для 1С:Предприятие/OneScript
    Параметры = ПолучитьПараметрыВК();
Результат = OPI_VK.ПолучитьСписокПодборок(Параметры);
    # JSON данные также могут быть переданы как путь к файлу .json

oint vk ПолучитьСписокПодборок \
--auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
Результат
[
{
"id": 124,
"owner_id": -218861756,
"title": "Измененная подборка",
"count": 0,
"updated_time": 1728135129,
"is_main": false,
"is_hidden": false,
"photo": {
"album_id": -53,
"date": 1728135128,
"id": 457248915,
"owner_id": -218861756,
"sizes": [
{
"height": 56,
"type": "s",
"width": 75,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=75x56"
},
{
"height": 97,
"type": "m",
"width": 130,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=130x97"
},
{
"height": 453,
"type": "x",
"width": 604,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=604x453"
},
{
"height": 605,
"type": "y",
"width": 807,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=807x605"
},
{
"height": 960,
"type": "z",
"width": 1280,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=1280x960"
},
{
"height": 1920,
"type": "w",
"width": 2560,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=2560x1920"
},
{
"height": 97,
"type": "o",
"width": 130,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=130x97"
},
{
"height": 150,
"type": "p",
"width": 200,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=200x150"
},
{
"height": 240,
"type": "q",
"width": 320,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=320x240"
},
{
"height": 382,
"type": "r",
"width": 510,
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=510x382"
}
],
"text": "",
"user_id": 100,
"web_view_token": "e3c04e952b4aa2407b",
"has_tags": false,
"orig_photo": {
"height": 1920,
"type": "base",
"url": "https://sun9-13.userapi.com/s/v1/ig2/9pOuUL0wmxDt9Z98Fq7pKoyDY6-cYLR22vaqQcLae3PvMvhK2H9cf_GrPQofPFW0MFRAZ9w855LeqfQhn98AIkpo.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu",
"width": 2560
}
}
},
{
"id": 123,
"owner_id": -218861756,
"title": "Измененная подборка",
"count": 0,
"updated_time": 1728133931,
"is_main": false,
"is_hidden": false,
"photo": {
"album_id": -53,
"date": 1728133931,
"id": 457248908,
"owner_id": -218861756,
"sizes": [
{
"height": 56,
"type": "s",
"width": 75,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=75x56"
},
{
"height": 97,
"type": "m",
"width": 130,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=130x97"
},
{
"height": 453,
"type": "x",
"width": 604,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=604x453"
},
{
"height": 605,
"type": "y",
"width": 807,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=807x605"
},
{
"height": 960,
"type": "z",
"width": 1280,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=1280x960"
},
{
"height": 1920,
"type": "w",
"width": 2560,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=2560x1920"
},
{
"height": 97,
"type": "o",
"width": 130,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=130x97"
},
{
"height": 150,
"type": "p",
"width": 200,
"url": "https://sun9-13.userapi.com/s/v1/ig2/lHkvvHEaksUett4rixE53mBr9nZvxyMyOaieoiH7U8awGKPcSdNRJ6Fchg8168HpCIls9iyr52PaKhswR7yEwsj-.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=200x150"
},
...