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-07 12:52:52 +03:00
parent efd154ea27
commit 5bd5a0fec7
92 changed files with 7285 additions and 5929 deletions
@@ -0,0 +1,41 @@
---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Create tag
Creates a tag with the specified name
`Function CreateTag(Val Token, Val Name) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Auth token |
| Name | --title | String | ✔ | Tag title |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [Creating a tag](https://yandex.ru/dev/metrika/en/management/openapi/label/createLabel)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
Name = "New tag";
Result = OPI_YandexMetrika.CreateTag(Token, Name);
```
@@ -0,0 +1,41 @@
---
sidebar_position: 4
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete tag
Deletes a tag by ID
`Function DeleteTag(Val Token, Val TagID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | &#x2714; | Auth token |
| TagID | --label | String | &#x2714; | ID of the tag to be deleted |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [Deleting a tag](https://yandex.ru/dev/metrika/en/management/openapi/label/deleteLabel)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
TagID = "313480";
Result = OPI_YandexMetrika.DeleteTag(Token, TagID);
```
@@ -0,0 +1,41 @@
---
sidebar_position: 3
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get tag
Gets the tag by ID
`Function GetTag(Val Token, Val TagID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | &#x2714; | Auth token |
| TagID | --label | String | &#x2714; | Tag ID |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [Tag information](https://yandex.ru/dev/metrika/en/management/openapi/label/getLabel)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
TagID = "313480";
Result = OPI_YandexMetrika.GetTag(Token, TagID);
```
@@ -0,0 +1,39 @@
---
sidebar_position: 5
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get tags list
Gets a list of the users tags
`Function GetTagsList(Val Token) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | &#x2714; | Auth token |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [List of user tags](https://yandex.ru/dev/metrika/en/management/openapi/label/getLabels)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
Result = OPI_YandexMetrika.GetTagsList(Token);
```
@@ -0,0 +1,43 @@
---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Update tag
Changes the tag name by ID
`Function UpdateTag(Val Token, Val TagID, Val Name) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | &#x2714; | Auth token |
| TagID | --label | String | &#x2714; | Tag ID to change |
| Name | --title | String | &#x2714; | New name |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [Changing a tag](https://yandex.ru/dev/metrika/en/management/openapi/label/updateLabel)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
TagID = "313480";
Name = "New tag title";
Result = OPI_YandexMetrika.UpdateTag(Token, TagID, Name);
```
@@ -0,0 +1,4 @@
{
"label": "Tags managment",
"position": "2"
}