Skip to main content

Make repost

Reposts the record

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

ParameterCLI optionTypeRequiredDescription
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


1C:Enterprise/OneScript code example
    Parameters = GetVKParameters();
PostID = 2571;
WallID = -218704372;

Result = OPI_VK.MakeRepost(PostID, WallID, , , Parameters);
    oint vk MakeRepost \
--post "2571" \
--from "-218704372" \
--auth ""/tmp/z1hwhvkw.obz.json""
Result
{
"response": {
"success": 1,
"post_id": 9693,
"reposts_count": 3,
"likes_count": 10,
"wall_repost_count": 1,
"mail_repost_count": 2,
"badges": {
"type": 11,
"id": 2571,
"owner_id": -218704372
}
}
}