Get tag
Gets the tag by ID
Function GetTag(Val Token, Val TagID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Auth token |
TagID | --label | String | ✔ | Tag ID |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
tip
Method at API documentation: Tag information
1C:Enterprise/OneScript code example
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
TagID = "314158";
Result = OPI_YandexMetrika.GetTag(Token, TagID);
- Bash
- CMD/Bat
oint metrika GetTag \
--token "***" \
--label "314175"
oint metrika GetTag ^
--token "***" ^
--label "314175"
Result
{
"label": {
"id": 313496,
"name": "New tag title"
}
}