1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-11-10 20:00:20 +03:00
parent a9b3439f1b
commit 8fa250f6b5
46 changed files with 6015 additions and 5449 deletions
@@ -30,7 +30,7 @@ Method at API documentation: [Deleting a counter](https://yandex.ru/dev/metrika/
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterID = "98874849";
CounterID = "98875788";
Result = OPI_YandexMetrika.DeleteCounter(Token, CounterID);
```
@@ -0,0 +1,37 @@
---
sidebar_position: 8
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get counter filter structure
Gets the structure of filter fields to get the list of counters
`Function GetCounterFilterStructure(Val Clear = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns: Structure of KeyAndValue - Counter field structure
<br/>
:::tip
Description in the API documentation: [List of available counters](https://yandex.ru/dev/metrika/en/management/openapi/counter/counters)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
```
@@ -1,5 +1,5 @@
---
sidebar_position: 6
sidebar_position: 7
---
import Tabs from '@theme/Tabs';
@@ -30,7 +30,7 @@ Method at API documentation: [Counter information](https://yandex.ru/dev/metrika
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterID = "98874849";
CounterID = "98875788";
Result = OPI_YandexMetrika.GetCounter(Token, CounterID);
```
@@ -0,0 +1,52 @@
---
sidebar_position: 6
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get counters list
Gets a list of available counters with or without filtering
`Function GetCountersList(Val Token, Val Filter = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | &#x2714; | Auth token |
| Filter | --filter | Structure of KeyAndValue | &#x2716; | List filter. See GetCounterFilterStructure |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [List of available counters](https://yandex.ru/dev/metrika/en/management/openapi/counter/counters)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterID = "98875788";
Result = OPI_YandexMetrika.GetCountersList(Token);
// filter by IDs list
Filter = New Structure;
CountersArray = New Array;
CountersArray.Add(CounterID);
Filter.Insert("counter_ids", CountersArray);
Result = OPI_YandexMetrika.GetCountersList(Token, Filter);
```
@@ -30,7 +30,7 @@ Method at API documentation: [Restoring a counter](https://yandex.ru/dev/metrika
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterID = "98874849";
CounterID = "98875788";
Result = OPI_YandexMetrika.RestoreCounter(Token, CounterID);
```
@@ -31,7 +31,7 @@ Method at API documentation: [Changing a counter](https://yandex.ru/dev/metrika/
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterID = "98874849";
CounterID = "98875788";
CounterStructure = New Structure;
CounterStructure.Insert("autogoals_enabled", True);