1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Yandex_Metrika/Counters-management/Get-counter.mdx
T
Vitaly the Alpaca (bot) 2f65e68ce4 Main build (Jenkins)
2024-11-11 22:11:22 +03:00

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 = "98889888";
Result = OPI_YandexMetrika.GetCounter(Token, CounterID);
```