2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 2
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get post statistics
|
|
|
|
Gets statistics in terms of posts
|
|
|
|
|
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-07-10 12:58:29 +02:00
|
|
|
`Function GetPostStatistics(Val PostIDsArray, Val Parameters = "") Export`
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| PostIDsArray | --posts | Array of String,Number | Array of post IDs |
|
|
|
|
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
Returns: Array of Arbitrary - Array of post statistics data
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-07-10 13:05:58 +02:00
|
|
|
<br/>
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-07-10 12:58:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
```bsl title="Code example"
|
2024-08-13 14:52:26 +02:00
|
|
|
Parameters = GetVKParameters();
|
|
|
|
|
|
|
|
ArrayOfPosts = New Array;
|
|
|
|
ArrayOfPosts.Add(214);
|
|
|
|
ArrayOfPosts.Add(215);
|
|
|
|
|
|
|
|
Result = OPI_VK.GetPostStatistics(ArrayOfPosts, Parameters);
|
2024-06-05 12:19:46 +02:00
|
|
|
```
|
2024-08-13 14:52:26 +02:00
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
oint vk GetPostStatistics --posts %posts% --auth "GetVKParameters()"
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 13:11:17 +02:00
|
|
|
[
|
2024-08-13 14:52:26 +02:00
|
|
|
{
|
|
|
|
"ad_report": 0,
|
|
|
|
"ad_coverage": 0,
|
|
|
|
"ad_to_group": 0,
|
|
|
|
"ad_unsubscribe": 0,
|
|
|
|
"ad_hide": 0,
|
|
|
|
"ad_join_group": 0,
|
|
|
|
"ad_subscribers": 0,
|
|
|
|
"ad_links": 0,
|
|
|
|
"ad_views": 0,
|
|
|
|
"reach_viral": 0,
|
|
|
|
"reach_total": 1,
|
|
|
|
"reach_ads": 0,
|
|
|
|
"report": 0,
|
|
|
|
"join_group": 0,
|
|
|
|
"links": 0,
|
|
|
|
"unsubscribe": 0,
|
|
|
|
"hide": 0,
|
|
|
|
"reach_subscribers": 1,
|
|
|
|
"to_group": 1,
|
|
|
|
"post_id": 214
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ad_report": 0,
|
|
|
|
"ad_coverage": 0,
|
|
|
|
"ad_to_group": 0,
|
|
|
|
"ad_unsubscribe": 0,
|
|
|
|
"ad_hide": 0,
|
|
|
|
"ad_join_group": 0,
|
|
|
|
"ad_subscribers": 0,
|
|
|
|
"ad_links": 0,
|
|
|
|
"ad_views": 0,
|
|
|
|
"reach_viral": 0,
|
|
|
|
"reach_total": 1,
|
|
|
|
"reach_ads": 0,
|
|
|
|
"report": 0,
|
|
|
|
"join_group": 0,
|
|
|
|
"links": 0,
|
|
|
|
"unsubscribe": 0,
|
|
|
|
"hide": 0,
|
|
|
|
"reach_subscribers": 1,
|
|
|
|
"to_group": 0,
|
|
|
|
"post_id": 215
|
|
|
|
}
|
|
|
|
]
|
2024-06-05 12:19:46 +02:00
|
|
|
```
|