mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-25 02:42:28 +02:00
39 lines
758 B
Markdown
39 lines
758 B
Markdown
---
|
|
sidebar_position: 11
|
|
---
|
|
|
|
# Upload photo to server
|
|
Uploads photo to server for further use
|
|
|
|
|
|
*Function UploadPhotoToServer(Val Image, Val Parameters = "", Val View = "Post") Export*
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|-|-|-|-|
|
|
| Image | --file | String, BinaryData | Image file |
|
|
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
|
| View | --type | String | Upload type (Post, Product, Story, Poll, Other) |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Serialized JSON response from VK
|
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
```
|
|
|
|
```sh title="CLI command example"
|
|
|
|
oint vk UploadPhotoToServer --file %file% --auth %auth% --type %type%
|
|
|
|
|
|
```
|
|
|
|
|
|
```json title="Result"
|
|
|
|
|
|
|
|
```
|