Skip to content

Commit

Permalink
OZON: Подписчики товара и коды активации
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayselonarrend committed Sep 1, 2024
1 parent 98f1fdb commit f8677b7
Show file tree
Hide file tree
Showing 73 changed files with 5,547 additions and 4,063 deletions.
1 change: 1 addition & 0 deletions docs/en/cli/Ozon/GetCodesUploadStatus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oint ozon GetCodesUploadStatus --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --taskid %taskid%
1 change: 1 addition & 0 deletions docs/en/cli/Ozon/GetProductSubscribersCount.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oint ozon GetProductSubscribersCount --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
1 change: 1 addition & 0 deletions docs/en/cli/Ozon/UploadProductActivationCodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oint ozon UploadProductActivationCodes --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid "1111588191" --codes %codes%
5 changes: 5 additions & 0 deletions docs/en/data/Ozon/GetCodesUploadStatus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ClientID": "2128753",
"APIKey": "7cc90d26-33e4-499b...",
"TaskID": ""
}
4 changes: 4 additions & 0 deletions docs/en/data/Ozon/GetProductSubscribersCount.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ClientID": "2128753",
"APIKey": "7cc90d26-33e4-499b..."
}
5 changes: 5 additions & 0 deletions docs/en/data/Ozon/UploadProductActivationCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ClientID": "2128753",
"APIKey": "7cc90d26-33e4-499b...",
"ProductID": 1111588191
}
6 changes: 4 additions & 2 deletions docs/en/examples/Ozon/DeleteProductsWithoutSKU.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
 ClientID = "2128753";
 OPI_Tools.Pause(30);

ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1111588191";

OPI_Ozon.ArchiveProducts(ClientID, APIKey, ProductID);
Result = OPI_Ozon.ArchiveProducts(ClientID, APIKey, ProductID);

Article = "143210608";

Expand Down
5 changes: 5 additions & 0 deletions docs/en/examples/Ozon/GetCodesUploadStatus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
 ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
TaskID = "";

Result = OPI_Ozon.GetCodesUploadStatus(ClientID, APIKey, TaskID);
5 changes: 5 additions & 0 deletions docs/en/examples/Ozon/GetProductSubscribersCount.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
 ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
SKU = 1626044001;

Result = OPI_Ozon.GetProductSubscribersCount(ClientID, APIKey, SKU);
9 changes: 9 additions & 0 deletions docs/en/examples/Ozon/UploadProductActivationCodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
 ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1111588191";

Codes = New Array;
Codes.Add("11111111");
Codes.Add("22222222");

Result = OPI_Ozon.UploadProductActivationCodes(ClientID, APIKey, ProductID, Codes);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 21
sidebar_position: 24
---

# Add product video cover
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 20
sidebar_position: 23
---

# Add product video
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 13
sidebar_position: 12
---

# Archive products
Expand Down Expand Up @@ -40,7 +40,7 @@ You can pass up to 100 identifiers at a time

```sh title="CLI command example"

oint ozon ArchiveProducts --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --products %products%
oint ozon ArchiveProducts --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --products %products%

```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 11
sidebar_position: 10
---

# Check products images upload
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 22
sidebar_position: 25
---

# Complete the complex attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ sidebar_position: 6
:::tip
Methods of product structure formation: GetProductStructure(), AddProductVideo(), AddProductVideoCover()

Uploading status check - GetProductCreationStatus()

Method at API documentation: [post /v3/product/import](https://docs.ozon.ru/api/seller/#operation/ProductAPI_ImportProductsV3)
:::
<br/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 15
sidebar_position: 14
---

# Delete products without SKU
Expand Down Expand Up @@ -31,11 +31,13 @@ The product must be pre-archived (see ArchiveProducts)


```bsl title="Code example"
OPI_Tools.Pause(30);
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1111588191";
OPI_Ozon.ArchiveProducts(ClientID, APIKey, ProductID);
Result = OPI_Ozon.ArchiveProducts(ClientID, APIKey, ProductID);
Article = "143210608";
Expand All @@ -46,7 +48,7 @@ The product must be pre-archived (see ArchiveProducts)

```sh title="CLI command example"

oint ozon DeleteProductsWithoutSKU --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --articles %articles%
oint ozon DeleteProductsWithoutSKU --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --articles %articles%

```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 18
sidebar_position: 21
---

# Get attributes update structure
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
sidebar_position: 18
---

# Get codes upload status
Gets the status of digital item codes upload by task ID



`Function GetCodesUploadStatus(Val ClientID, Val APIKey, Val TaskID) Export`

| Parameter | CLI option | Type | Description |
|-|-|-|-|
| ClientID | --clientid | String | Client identifier |
| APIKey | --apikey | String | API key |
| TaskID | --taskid | String, Number | Add product task ID |


Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API

<br/>

:::tip
Method at API documentation: [post /v1/product/upload_digital_codes/info](https://docs.ozon.ru/api/seller/#operation/ProductAPI_UploadDigitalCodeInfo)
:::
<br/>


```bsl title="Code example"
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
TaskID = "";
Result = OPI_Ozon.GetCodesUploadStatus(ClientID, APIKey, TaskID);
```



```sh title="CLI command example"

oint ozon GetCodesUploadStatus --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --taskid %taskid%

```

```json title="Result"

```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 10
sidebar_position: 17
---

# Get product creation status
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 16
sidebar_position: 19
---

# Get product structure
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
sidebar_position: 16
---

# Get product subscribers count
Gets the number of users who clicked Know about arrival button on the product page



`Function GetProductSubscribersCount(Val ClientID, Val APIKey, Val SKU) Export`

| Parameter | CLI option | Type | Description |
|-|-|-|-|
| ClientID | --clientid | String | Client identifier |
| APIKey | --apikey | String | API key |
| SKU | --sku | Number, Array Of Number | Products identifiers in the Ozon system (SKU) |


Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API

<br/>

:::tip
Method at API documentation: [post /v1/product/info/subscription](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetProductInfoSubscription)
:::
<br/>


```bsl title="Code example"
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
SKU = 1626044001;
Result = OPI_Ozon.GetProductSubscribersCount(ClientID, APIKey, SKU);
```



```sh title="CLI command example"

oint ozon GetProductSubscribersCount --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%

```

```json title="Result"

```
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Method at API documentation: [post /v3/products/info/attributes](https://docs.oz

```sh title="CLI command example"

oint ozon GetProductsAttributesData --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
oint ozon GetProductsAttributesData --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%

```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sidebar_position: 5
|-|-|-|-|
| ClientID | --clientid | String | Client identifier |
| APIKey | --apikey | String | API key |
| SKU | --sku | String, Number, Array of String, Number | One or array of SKUs |
| SKU | --sku | Number, Array Of Number | Products identifiers in the Ozon system (SKU) |


Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 19
sidebar_position: 22
---

# Get products filter structure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 17
sidebar_position: 20
---

# Get simplified product structure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 14
sidebar_position: 13
---

# Unarchive products
Expand Down Expand Up @@ -40,7 +40,7 @@ You can restore from the archive no more than 10 products that were automaticall

```sh title="CLI command example"

oint ozon UnarchiveProducts --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --products %products%
oint ozon UnarchiveProducts --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --products %products%

```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 12
sidebar_position: 11
---

# Update products articles
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
sidebar_position: 15
---

# Upload product activations codes
Uploads activation codes for a digital product or service



`Function UploadProductActivationCodes(Val ClientID, Val APIKey, Val ProductID, Val Codes) Export`

| Parameter | CLI option | Type | Description |
|-|-|-|-|
| ClientID | --clientid | String | Client identifier |
| APIKey | --apikey | String | API key |
| ProductID | --productid | Number | Product ID |
| Codes | --codes | String, Array of String | Digital product activation codes |


Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API

<br/>

:::tip
The activation code is linked to the digital product card

Uploading status check - GetCodesUploadStatus()

Method at API documentation: [post /v1/product/upload_digital_codes](https://docs.ozon.ru/api/seller/#operation/ProductAPI_UploadDigitalCode)
:::
<br/>


```bsl title="Code example"
ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1111588191";
Codes = New Array;
Codes.Add("11111111");
Codes.Add("22222222");
Result = OPI_Ozon.UploadProductActivationCodes(ClientID, APIKey, ProductID, Codes);
```



```sh title="CLI command example"

oint ozon UploadProductActivationCodes --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid "1111588191" --codes %codes%

```

```json title="Result"

```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oint ozon ЗагрузитьКодыАктивацииТовара --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid "1111588191" --codes %codes%
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oint ozon ПолучитьКоличествоПодписчиковТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oint ozon ПолучитьСтатусДобавленияКодов --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --taskid %taskid%
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"IDКлиента": "2128753",
"КлючAPI": "7cc90d26-33e4-499b...",
"IDТовара": 1111588191
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"IDКлиента": "2128753",
"КлючAPI": "7cc90d26-33e4-499b..."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"IDКлиента": "2128753",
"КлючAPI": "7cc90d26-33e4-499b...",
"IDЗадачи": ""
}
Loading

0 comments on commit f8677b7

Please sign in to comment.