2024-06-07 11:53:24 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 5
|
|
|
|
---
|
|
|
|
|
|
|
|
# Create album
|
|
|
|
Creates an album to store images
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function CreateAlbum(Val Name, Val Description = "", Val Parameters = "") Export`
|
2024-06-07 11:53:24 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Name | --title | String | Album name |
|
|
|
|
| Description | --description | String | Album description |
|
|
|
|
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
2024-06-07 11:53:24 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-10-09 09:42:00 +03:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from VK
|
2024-06-07 11:53:24 +00:00
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-07 11:53:24 +00:00
|
|
|
```bsl title="Code example"
|
2024-08-13 16:47:32 +03:00
|
|
|
Parameters = GetVKParameters();
|
|
|
|
Name = "AlbumFromAutoTest";
|
|
|
|
Description = "NewAlbumFromAutoTest";
|
|
|
|
|
|
|
|
Result = OPI_VK.CreateAlbum(Name, Description, Parameters);
|
2024-06-07 11:53:24 +00:00
|
|
|
```
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-06-07 11:53:24 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
oint vk CreateAlbum --title "AlbumFromAutoTest" --description %description% --auth "GetVKParameters()"
|
2024-06-07 11:53:24 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-08-14 09:06:31 +03:00
|
|
|
{
|
2024-10-06 16:55:08 +03:00
|
|
|
"response": {
|
2024-10-09 09:42:00 +03:00
|
|
|
"id": 306043366,
|
2024-08-13 15:52:26 +03:00
|
|
|
"owner_id": -218861756,
|
|
|
|
"size": 0,
|
|
|
|
"title": "AlbumFromAutoTest",
|
|
|
|
"feed_disabled": 0,
|
|
|
|
"feed_has_pinned": 0,
|
|
|
|
"can_upload": 1,
|
|
|
|
"comments_disabled": 0,
|
2024-10-09 09:42:00 +03:00
|
|
|
"created": 1728453690,
|
2024-08-13 15:52:26 +03:00
|
|
|
"description": "NewAlbumFromAutoTest",
|
|
|
|
"thumb_id": 0,
|
2024-10-09 09:42:00 +03:00
|
|
|
"updated": 1728453690,
|
2024-08-13 15:52:26 +03:00
|
|
|
"upload_by_admins_only": 1
|
2024-10-06 16:55:08 +03:00
|
|
|
}
|
|
|
|
}
|
2024-06-07 11:53:24 +00:00
|
|
|
```
|