You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-15 01:34:30 +02:00
Конвертация ozon.bsl и первые доки
This commit is contained in:
@ -94,7 +94,7 @@ li > a.menu__link {
|
||||
.Airtable a::before , .Telegram a::before, .VK a::before, .Viber a::before, .Twitter a::before,
|
||||
.Notion a::before, .GoogleCalendar a::before, .GoogleDrive a::before, .GoogleSheets a::before,
|
||||
.Slack a::before, .YandexDisk a::before, .Dropbox a::before, .Bitrix24 a::before, .Messenger a::before,
|
||||
.Social a::before, .Database a::before, .Folder a::before, .Calendar a::before, .CRM a::before,
|
||||
.Social a::before, .Database a::before, .Folder a::before, .Calendar a::before, .CRM a::before, .Commerce a::before,
|
||||
.VKTeams a::before, .Start a::before{
|
||||
padding-right: 0.7rem;
|
||||
padding-top: 0.4rem;
|
||||
@ -180,6 +180,10 @@ li > a.menu__link {
|
||||
content: url(../../static/img/Categories/folder.png);
|
||||
}
|
||||
|
||||
.Commerce > div > a::before{
|
||||
content: url(../../static/img/Categories/e-commerce.png);
|
||||
}
|
||||
|
||||
.Start > div > a::before{
|
||||
content: url(../../static/img/Categories/welcome.png);
|
||||
}
|
||||
|
BIN
docs/docusaurus/static/img/APIs/Ozon.png
Normal file
BIN
docs/docusaurus/static/img/APIs/Ozon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
BIN
docs/docusaurus/static/img/APIs/small/Ozon.png
Normal file
BIN
docs/docusaurus/static/img/APIs/small/Ozon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
docs/docusaurus/static/img/Categories/e-commerce.png
Normal file
BIN
docs/docusaurus/static/img/Categories/e-commerce.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
docs/docusaurus/static/img/Categories/e-commerce2.png
Normal file
BIN
docs/docusaurus/static/img/Categories/e-commerce2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -1,5 +1,5 @@
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
|
||||
Result = OPI_Ozon.GetCategoriesAndProductTypesTree(ClientID, APIKey, "EN");
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
ClientID = "2128753";
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
CategoryID = 17029016;
|
||||
TypeID = 970778135;
|
||||
|
12
docs/en/md/Instructions/Ozon.md
Normal file
12
docs/en/md/Instructions/Ozon.md
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
id: Ozon
|
||||
sidebar_class_name: Ozon
|
||||
---
|
||||
|
||||
<img src={require('../../static/img/APIs/Ozon.png').default} width='64px' />
|
||||
|
||||
# Ozon
|
||||
|
||||
This section is dedicated to the library for working with Ozon Seller API. On this page, all the steps necessary to start working are described
|
||||
|
||||
## Getting started
|
@ -56,6 +56,14 @@
|
||||
{ type: 'category', link: {type: 'doc', id:'Instructions/Bitrix24'}, label: 'Bitrix24', className: 'Bitrix24', items:[{type: 'autogenerated', dirName: 'Bitrix24'}]},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'E-commerce',
|
||||
className: 'Commerce',
|
||||
items:[
|
||||
{ type: 'category', link: {type: 'doc', id:'Instructions/Ozon'}, label: 'Ozon', className: 'Ozon', items:[{type: 'autogenerated', dirName: 'Ozon'}]},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Planning and projects managment ',
|
||||
|
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьДеревоКатегорийИТиповТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --lang %lang%
|
1
docs/ru/cli/Ozon/ПолучитьХарактеристикиКатегории.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьХарактеристикиКатегории.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьХарактеристикиКатегории --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --categoryid %categoryid% --typeid %typeid% --lang %lang%
|
@ -1,5 +1,5 @@
|
||||
IDКлиента = "2128753";
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
|
||||
Результат = OPI_Ozon.ПолучитьДеревоКатегорийИТиповТоваров(IDКлиента, КлючAPI, "EN");
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
IDКлиента = "2128753";
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
IDКатегории = 17029016;
|
||||
IDТипа = 970778135;
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
IDКатегории = 17029016;
|
||||
IDТипа = 970778135;
|
||||
|
||||
Результат = OPI_Ozon.ПолучитьХарактеристикиКатегории(IDКлиента, КлючAPI, IDКатегории, IDТипа);
|
||||
|
12
docs/ru/md/Instructions/Ozon.md
Normal file
12
docs/ru/md/Instructions/Ozon.md
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
id: Ozon
|
||||
sidebar_class_name: Ozon
|
||||
---
|
||||
|
||||
<img src={require('../../static/img/APIs/Ozon.png').default} width='64px' />
|
||||
|
||||
# Ozon
|
||||
|
||||
Этот раздел посвящен библиотеке для работы с Ozon Seller API. На данной странице описаны все действия, необходимые для полноценного начала работы
|
||||
|
||||
## Начало работы
|
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Получить дерево категорий и типов товаров
|
||||
Возвращает категории и типы для товаров в виде дерева
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьДеревоКатегорийИТиповТоваров(Знач IDКлиента, Знач КлючAPI, Знач Язык = "DEFAULT") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| IDКлиента | --clientid | Строка | Идентификатор клиента |
|
||||
| КлючAPI | --apikey | Строка | API ключ |
|
||||
| Язык | --lang | Строка | Язык ответа: DEFAULT (русский), RU, EN, TR (турецкий), ZH_HANS (китайский) |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Создание товаров доступно только в категориях последнего уровня, сравните именно их с категориями на своей площадке. Категории не создаются по запросу пользователя
|
||||
|
||||
Внимательно выбирайте категорию для товара: для разных категорий применяется разный размер комиссии.
|
||||
|
||||
Метод в документации API: [post /v1/description-category/tree](https://docs.ozon.ru/api/seller/#operation/DescriptionCategoryAPI_GetTree)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
IDКлиента = "2128753";
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
|
||||
Результат = OPI_Ozon.ПолучитьДеревоКатегорийИТиповТоваров(IDКлиента, КлючAPI, "EN");
|
||||
|
||||
Результат = OPI_Ozon.ПолучитьДеревоКатегорийИТиповТоваров(IDКлиента, КлючAPI);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьДеревоКатегорийИТиповТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --lang %lang%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Получить характеристики категории
|
||||
Получает характеристики для указанной категории и типа товара
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьХарактеристикиКатегории(Знач IDКлиента, Знач КлючAPI, Знач IDКатегории, Знач IDТипа, Знач Язык = "DEFAULT") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| IDКлиента | --clientid | Строка | Идентификатор клиента |
|
||||
| КлючAPI | --apikey | Строка | API ключ |
|
||||
| IDКатегории | --categoryid | Строка, Число | Идентификатор категории |
|
||||
| IDТипа | --typeid | Строка, Число | Идентификатор типа товара |
|
||||
| Язык | --lang | Строка | Язык ответа: DEFAULT (русский), RU, EN, TR (турецкий), ZH_HANS (китайский) |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Если у dictionary_id значение 0, у атрибута нет вложенных справочников. Если значение другое, то справочники есть. Получить их можно методом ПолучитьЗначенияХарактеристик()
|
||||
|
||||
Метод в документации API: [post /v1/description-category/attribute](https://docs.ozon.ru/api/seller/#operation/DescriptionCategoryAPI_GetAttributes)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
IDКлиента = "2128753";
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
IDКатегории = 17029016;
|
||||
IDТипа = 970778135;
|
||||
|
||||
Результат = OPI_Ozon.ПолучитьХарактеристикиКатегории(IDКлиента, КлючAPI, IDКатегории, IDТипа);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьХарактеристикиКатегории --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --categoryid %categoryid% --typeid %typeid% --lang %lang%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
4
docs/ru/md/Ozon/Attributes-and-features/_category_.json
Normal file
4
docs/ru/md/Ozon/Attributes-and-features/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Атрибуты и характеристики",
|
||||
"position": "2"
|
||||
}
|
@ -56,6 +56,14 @@ export default {
|
||||
{ type: 'category', link: {type: 'doc', id:'Instructions/Bitrix24'}, label: 'Bitrix24', className: 'Bitrix24', items:[{type: 'autogenerated', dirName: 'Bitrix24'}]},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Электронная коммерция',
|
||||
className: 'Commerce',
|
||||
items:[
|
||||
{ type: 'category', link: {type: 'doc', id:'Instructions/Ozon'}, label: 'Ozon', className: 'Ozon', items:[{type: 'autogenerated', dirName: 'Ozon'}]},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'category',
|
||||
label: 'Планирование и управление проектами ',
|
||||
|
Reference in New Issue
Block a user