mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-28 05:46:35 +02:00
61 lines
1.3 KiB
Markdown
61 lines
1.3 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Make repost
|
|
Reposts the record
|
|
|
|
|
|
|
|
`Function MakeRepost(Val PostID, Val WallID = "", Val TargetWall = "", Val Advertising = False, Val Parameters = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|-|-|-|-|
|
|
| PostID | --post | String, Number | Post ID |
|
|
| WallID | --from | String, Number | ID of the wall where the post is located |
|
|
| TargetWall | --to | String, Number | ID of the target wall or group |
|
|
| Advertising | --ad | Boolean | Sign of an advertising post |
|
|
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Serialized JSON response from VK
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
|
Parameters = GetVKParameters();
|
|
PostID = 2571;
|
|
WallID = -218704372;
|
|
|
|
Result = OPI_VK.MakeRepost(PostID, WallID, , , Parameters);
|
|
```
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
oint vk MakeRepost --post "2571" --from "-218704372" --to %to% --ad %ad% --auth "GetVKParameters()"
|
|
|
|
```
|
|
|
|
```json title="Result"
|
|
{
|
|
"response": {
|
|
"mail_repost_count": 2,
|
|
"likes_count": 7,
|
|
"reposts_count": 3,
|
|
"post_id": 228,
|
|
"badges": {
|
|
"owner_id": -218704372,
|
|
"id": 2571,
|
|
"type": 11
|
|
},
|
|
"wall_repost_count": 1,
|
|
"success": 1
|
|
}
|
|
}
|
|
```
|