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