Skip to main content

Make repost

Reposts the record

Function MakeRepost(Val PostID, Val WallID = "", Val TargetWall = "", Val Advertising = False, Val Parameters = "") Export

ParameterCLI optionTypeDescription
PostID--postString, NumberPost ID
WallID--fromString, NumberID of the wall where the post is located
TargetWall--toString, NumberID of the target wall or group
Advertising--adBooleanSign of an advertising post
Parameters--authStructure Of StringAuthorization JSON or path to .json

Returns: Map Of KeyAndValue - Serialized JSON response from VK


Code example
    Parameters = GetVKParameters();
PostID = 2571;
WallID = -218704372;

Result = OPI_VK.MakeRepost(PostID, WallID, , , Parameters);
CLI command example
    
oint vk MakeRepost --post "2571" --from "-218704372" --to %to% --ad %ad% --auth "GetVKParameters()"

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
}
}