1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-24 05:36:29 +02:00

61 lines
1.3 KiB
Markdown
Raw Normal View History

---
sidebar_position: 5
---
# Create album
Creates an album to store images
2024-07-10 13:58:29 +03:00
`Function CreateAlbum(Val Name, Val Description = "", Val Parameters = "") Export`
| 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-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from VK
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03: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);
```
```sh title="CLI command example"
oint vk CreateAlbum --title "AlbumFromAutoTest" --description %description% --auth "GetVKParameters()"
```
```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,
"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,
"description": "NewAlbumFromAutoTest",
"thumb_id": 0,
2024-10-09 09:42:00 +03:00
"updated": 1728453690,
"upload_by_admins_only": 1
2024-10-06 16:55:08 +03:00
}
}
```