1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00

59 lines
1.2 KiB
Markdown
Raw Normal View History

---
sidebar_position: 2
---
# Make repost
Reposts the record
2024-07-10 13:58:29 +03:00
`Function MakeRepost(Val PostID, Val WallID = "", Val TargetWall = "", Val Advertising = False, Val Parameters = "") Export`
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| 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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-07-10 14:24:11 +03:00
Response = OPI_VK.MakeRepost(2571, -218704372,,, Parameters);
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
oint vk MakeRepost --post %post% --from %from% --to %to% --ad %ad% --auth %auth%
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"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
}
}
```