You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
42 lines
843 B
Plaintext
42 lines
843 B
Plaintext
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get counter
|
|
Gets information about the counter by ID
|
|
|
|
|
|
|
|
`Function GetCounter(Val Token, Val CounterID) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Auth token |
|
|
| CounterID | --counter | String, Number | ✔ | Counter ID |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [Counter information](https://yandex.ru/dev/metrika/en/management/openapi/counter/counter)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
|
|
CounterID = "98874849";
|
|
|
|
Result = OPI_YandexMetrika.GetCounter(Token, CounterID);
|
|
```
|
|
|
|
|
|
|
|
|
|
|