You've already forked OpenIntegrations
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:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
@@ -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 = "98873524";
|
||||
CounterID = "98874380";
|
||||
|
||||
Result = OPI_YandexMetrika.DeleteCounter(Token, CounterID);
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
---
|
||||
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 = "98874380";
|
||||
|
||||
Result = OPI_YandexMetrika.GetCounter(Token, CounterID);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Update counter
|
||||
Changes counter field values by ID
|
||||
|
||||
|
||||
|
||||
`Function UpdateCounter(Val Token, Val CounterID, Val CounterStructure) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --token | String | ✔ | Auth token |
|
||||
| CounterID | --counter | String, Number | ✔ | Counter ID to change |
|
||||
| CounterStructure | --fields | Structure of KeyAndValue | ✔ | Structure of fields to be changed. See GetCounterStructure |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Changing a counter](https://yandex.ru/dev/metrika/en/management/openapi/counter/editCounter)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
|
||||
CounterID = "98874380";
|
||||
|
||||
CounterStructure = New Structure;
|
||||
CounterStructure.Insert("autogoals_enabled", True);
|
||||
|
||||
FlagsStructure = New Structure;
|
||||
FlagsStructure.Insert("collect_first_party_data" , False);
|
||||
FlagsStructure.Insert("measurement_enabled" , False);
|
||||
FlagsStructure.Insert("use_in_benchmarks" , False);
|
||||
FlagsStructure.Insert("direct_allow_use_goals_without_access", False);
|
||||
|
||||
CounterStructure.Insert("counter_flags" , FlagsStructure);
|
||||
CounterStructure.Insert("favorite" , 0);
|
||||
CounterStructure.Insert("filter_robots" , 1);
|
||||
|
||||
Result = OPI_YandexMetrika.UpdateCounter(Token, CounterID, CounterStructure);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ Method at API documentation: [Deleting a tag](https://yandex.ru/dev/metrika/en/m
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
|
||||
TagID = "313485";
|
||||
TagID = "313561";
|
||||
|
||||
Result = OPI_YandexMetrika.DeleteTag(Token, TagID);
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ Method at API documentation: [Tag information](https://yandex.ru/dev/metrika/en/
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
|
||||
TagID = "313485";
|
||||
TagID = "313561";
|
||||
|
||||
Result = OPI_YandexMetrika.GetTag(Token, TagID);
|
||||
```
|
||||
|
||||
@@ -31,7 +31,7 @@ Method at API documentation: [Changing a tag](https://yandex.ru/dev/metrika/en/m
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
|
||||
TagID = "313485";
|
||||
TagID = "313561";
|
||||
Name = "New tag title";
|
||||
|
||||
Result = OPI_YandexMetrika.UpdateTag(Token, TagID, Name);
|
||||
|
||||
Reference in New Issue
Block a user