1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-19 22:33:07 +02:00

204 lines
4.4 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-08-22 08:45:57 +03:00
sidebar_position: 3
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-08-22 08:45:57 +03:00
# Get attribute values
Gets the list of available values of the attribute
`Function GetAttributeValues(Val ClientID, Val APIKey, Val CategoryID, Val TypeID, Val AttributeID, Val CatalogID = 1, Val Lang = "DEFAULT") Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| ClientID | --clientid | String | ✔ | Client identifier |
| APIKey | --apikey | String | ✔ | API key |
| CategoryID | --categoryid | String, Number | ✔ | Category identifier |
| TypeID | --typeid | String, Number | ✔ | Item type identifier |
| AttributeID | --attributeid | String, Number | ✔ | Attribute IDs for obtaining values |
| CatalogID | --start | String, Number | ✖ | ID of the first catalog in the response |
| Lang | --lang | String | ✖ | Response language: DEFAULT (Russian), RU, EN, TR (Turkish), ZH_HANS (Chinese)) |
2024-08-22 08:45:57 +03:00
2024-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
2024-08-22 08:45:57 +03:00
<br/>
:::tip
You can find out if there is a nested catalog by the GetCharacteristicsCategories method()
Method at API documentation: [post /v1/description-category/attribute/values](https://docs.ozon.ru/api/seller/#operation/DescriptionCategoryAPI_GetAttributeValues)
:::
<br/>
```bsl title="Code example"
2024-09-24 11:38:18 +03:00
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
2024-08-22 08:45:57 +03:00
CategoryID = 17054869;
TypeID = 97311;
AttributeID = 85;
Result = OPI_Ozon.GetAttributeValues(ClientID, APIKey, CategoryID, TypeID, AttributeID);
```
2024-10-15 09:53:37 +03:00
2024-08-22 08:45:57 +03:00
```json title="Result"
{
"result": [
{
"id": 5056737,
"value": "Essence",
"info": "Красота и здоровье",
"picture": "https://cdn1.ozone.ru/s3/multimedia-v/6088253599.jpg"
},
{
"id": 5057962,
"value": "Hot",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-1/6011312389.jpg"
},
{
"id": 5058518,
"value": "CS",
"info": "",
"picture": ""
},
{
"id": 5059837,
"value": "Каскад",
"info": "Зоотовары",
"picture": "https://cdn1.ozone.ru/s3/multimedia-4/6027361156.jpg"
},
{
"id": 5062537,
"value": "Enigma",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-5/6427347617.jpg"
},
{
"id": 5062790,
"value": "Kitfort",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-6/6737348550.jpg"
},
{
"id": 5064843,
"value": "Parlux",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-w/6011101280.jpg"
},
{
"id": 5065236,
"value": "Сателлит",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-4/6010470136.jpg"
},
{
"id": 5066816,
"value": "Carioca",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-8/6063013796.jpg"
},
{
"id": 5068632,
"value": "Bawi",
"info": "",
"picture": ""
},
{
"id": 5069237,
"value": "Kodak",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-m/6011062066.jpg"
},
{
"id": 5069442,
"value": "Mattel",
"info": "Детские игрушки",
"picture": "https://cdn1.ozone.ru/multimedia/1013076413.jpg"
},
{
"id": 5071003,
"value": "Ivo",
"info": "",
"picture": ""
},
{
"id": 5071289,
"value": "HTC",
"info": "",
"picture": "https://cdn1.ozone.ru/multimedia/1011058578.jpg"
},
{
"id": 5073069,
"value": "Ghost",
"info": "",
"picture": ""
},
{
"id": 5073089,
"value": "Oleg Cassini",
"info": "",
"picture": ""
},
{
"id": 5073356,
"value": "Ritzenhoff & Breker",
"info": "",
"picture": ""
},
{
"id": 5073389,
"value": "William Levene",
"info": "",
"picture": ""
},
{
"id": 5074417,
"value": "KEF",
"info": "",
"picture": ""
},
{
"id": 5074684,
"value": "Cutipol",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-o/6011755428.jpg"
},
{
"id": 5075889,
"value": "Jacob Zeidler & Co",
"info": "",
"picture": ""
},
{
"id": 5076255,
"value": "The Original Book Works Limited",
"info": "",
"picture": ""
},
{
"id": 5076787,
"value": "Ocean Extreme",
"info": "",
"picture": ""
},
{
"id": 5077287,
"value": "Народное искусство",
"info": "",
"picture": ""
},
{
"id": 5077379,
"value": "Zyliss",
"info": "",
2024-09-29 19:41:20 +03:00
...
2024-08-22 08:45:57 +03:00
```