mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-26 05:37:27 +02:00
1.3 KiB
1.3 KiB
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
Parameters = GetVKParameters();
PostID = 2571;
WallID = -218704372;
Result = OPI_VK.MakeRepost(PostID, WallID, , , Parameters);
oint vk MakeRepost --post "2571" --from "-218704372" --to %to% --ad %ad% --auth "GetVKParameters()"
{
"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
}
}