You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-15 01:34:30 +02:00
Main build (Jenkins)
This commit is contained in:
6
docs/en/data/YandexMarket/AddUpdateProducts.json
Normal file
6
docs/en/data/YandexMarket/AddUpdateProducts.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
|
||||
"AccountID": "172257075",
|
||||
"Image": "https://api.athenaeum.digital/test_data/picture.jpg",
|
||||
"Video": "https://api.athenaeum.digital/test_data/video.mp4"
|
||||
}
|
4
docs/en/data/YandexMarket/GetBusinessSettings.json
Normal file
4
docs/en/data/YandexMarket/GetBusinessSettings.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
|
||||
"AccountID": "172257075"
|
||||
}
|
4
docs/en/data/YandexMarket/GetCampaignSettings.json
Normal file
4
docs/en/data/YandexMarket/GetCampaignSettings.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
|
||||
"CampaignID": "129112733"
|
||||
}
|
4
docs/en/data/YandexMarket/GetMarket.json
Normal file
4
docs/en/data/YandexMarket/GetMarket.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
|
||||
"CampaignID": "129112733"
|
||||
}
|
3
docs/en/data/YandexMarket/GetMarketsList.json
Normal file
3
docs/en/data/YandexMarket/GetMarketsList.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO..."
|
||||
}
|
65
docs/en/examples/YandexMarket/AddUpdateProducts.txt
Normal file
65
docs/en/examples/YandexMarket/AddUpdateProducts.txt
Normal file
@ -0,0 +1,65 @@
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
AccountID = "172257075";
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||
Video = "https://api.athenaeum.digital/test_data/video.mp4";
|
||||
|
||||
UpdatesStructure = New Structure;
|
||||
|
||||
ItemStructure = New Structure;
|
||||
ItemStructure.Insert("offerId" , "11111");
|
||||
ItemStructure.Insert("name" , "Makita HP1630 impact drill, 710 W");
|
||||
ItemStructure.Insert("marketCategoryId", 15221861);
|
||||
ItemStructure.Insert("category" , "Drill");
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image);
|
||||
|
||||
ItemStructure.Insert("pictures", ImageArray);
|
||||
|
||||
VideosArray = New Array;
|
||||
VideosArray.Add(Video);
|
||||
|
||||
ItemStructure.Insert("videos", VideosArray);
|
||||
ItemStructure.Insert("vendor", "LEVENHUK");
|
||||
|
||||
BarcodesArray = New Array;
|
||||
BarcodesArray.Add("46012300000000");
|
||||
|
||||
ItemStructure.Insert("barcodes" , BarcodesArray);
|
||||
ItemStructure.Insert("description", "Description");
|
||||
|
||||
CountriesArray = New Array;
|
||||
CountriesArray.Add("Russia");
|
||||
|
||||
ItemStructure.Insert("manufacturerCountries", CountriesArray);
|
||||
|
||||
SizesStructure = New Structure;
|
||||
SizesStructure.Insert("length", 65.55);
|
||||
SizesStructure.Insert("width" , 50.7);
|
||||
SizesStructure.Insert("height", 20);
|
||||
SizesStructure.Insert("weight", 1.001);
|
||||
|
||||
ItemStructure.Insert("weightDimensions", SizesStructure);
|
||||
ItemStructure.Insert("vendorCode" , "VNDR-0005A");
|
||||
|
||||
TagsArray = New Array;
|
||||
TagsArray.Add("up to 500 roubles");
|
||||
|
||||
ItemStructure.Insert("tags", TagsArray);
|
||||
|
||||
PeriodStructure = New Structure;
|
||||
PeriodStructure.Insert("timePeriod", 24);
|
||||
PeriodStructure.Insert("timeUnit" , "HOUR");
|
||||
PeriodStructure.Insert("comment" , "Comment");
|
||||
|
||||
ItemStructure.Insert("shelfLife" , PeriodStructure);
|
||||
ItemStructure.Insert("lifeTime" , PeriodStructure);
|
||||
ItemStructure.Insert("guaranteePeriod" , PeriodStructure);
|
||||
ItemStructure.Insert("customsCommodityCode", 8517610008);
|
||||
ItemStructure.Insert("type" , "DEFAULT");
|
||||
ItemStructure.Insert("downloadable" , False);
|
||||
ItemStructure.Insert("adult" , False);
|
||||
|
||||
UpdatesStructure.Insert("offer", ItemStructure);
|
||||
|
||||
Result = OPI_YandexMarket.AddUpdateProducts(Token, AccountID, UpdatesStructure);
|
4
docs/en/examples/YandexMarket/GetBusinessSettings.txt
Normal file
4
docs/en/examples/YandexMarket/GetBusinessSettings.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
AccountID = "172257075";
|
||||
|
||||
Result = OPI_YandexMarket.GetBusinessSettings(Token, AccountID);
|
4
docs/en/examples/YandexMarket/GetCampaignSettings.txt
Normal file
4
docs/en/examples/YandexMarket/GetCampaignSettings.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
CampaignID = "129112733";
|
||||
|
||||
Result = OPI_YandexMarket.GetCampaignSettings(Token, CampaignID);
|
4
docs/en/examples/YandexMarket/GetMarket.txt
Normal file
4
docs/en/examples/YandexMarket/GetMarket.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
CampaignID = "129112733";
|
||||
|
||||
Result = OPI_YandexMarket.GetMarket(Token, CampaignID);
|
3
docs/en/examples/YandexMarket/GetMarketsList.txt
Normal file
3
docs/en/examples/YandexMarket/GetMarketsList.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
|
||||
Result = OPI_YandexMarket.GetMarketsList(Token);
|
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get business settings
|
||||
Gets the values of cabinet (business) settings by ID
|
||||
|
||||
|
||||
|
||||
`Function GetBusinessSettings(Val Token, Val AccountID) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --Key) | String | ✔ | token |
|
||||
| AccountID | --business | String, Number | ✔ | Business ID |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Yandex Market
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Cabinet settings](https://yandex.ru/dev/market/partner-api/doc/ru/reference/businesses/getBusinessSettings)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
AccountID = "172257075";
|
||||
|
||||
Result = OPI_YandexMarket.GetBusinessSettings(Token, AccountID);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get campaign settings
|
||||
Gets market (campaign) settings by ID
|
||||
|
||||
|
||||
|
||||
`Function GetCampaignSettings(Val Token, Val CampaignID) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --Key) | String | ✔ | token |
|
||||
| CampaignID | --campaign | String, Number | ✔ | Market ID (campaignsId) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Yandex Market
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Market settings](https://yandex.ru/dev/market/partner-api/doc/ru/reference/campaigns/getCampaignSettings)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
CampaignID = "129112733";
|
||||
|
||||
Result = OPI_YandexMarket.GetCampaignSettings(Token, CampaignID);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get market
|
||||
Gets information about a market (campaign) by ID
|
||||
|
||||
|
||||
|
||||
`Function GetMarket(Val Token, Val CampaignID) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --Key) | String | ✔ | token |
|
||||
| CampaignID | --campaign | String, Number | ✔ | Market ID (campaignsId) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Yandex Market
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Market information](https://yandex.ru/dev/market/partner-api/doc/ru/reference/campaigns/getCampaign)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
CampaignID = "129112733";
|
||||
|
||||
Result = OPI_YandexMarket.GetMarket(Token, CampaignID);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,42 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get markets list
|
||||
Gets the list of shops in the cabinet by token
|
||||
|
||||
|
||||
|
||||
`Function GetMarketsList(Val Token, Val Page = 1) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --Key) | String | ✔ | token |
|
||||
| Page | --page | Number | ✖ | Issue page number of the list |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Yandex Market
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [List of users shops](https://yandex.ru/dev/market/partner-api/doc/ru/reference/campaigns/getCampaigns)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
|
||||
Result = OPI_YandexMarket.GetMarketsList(Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Campaigns and business",
|
||||
"position": "2"
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Add update products
|
||||
Adds or updates product information in the catalogue
|
||||
|
||||
|
||||
|
||||
`Function AddUpdateProducts(Val Token, Val AccountID, Val ProductsArray, Val OwnImages = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Token | --Key) | String | ✔ | token |
|
||||
| AccountID | --business | String, Number | ✔ | Business ID |
|
||||
| ProductsArray | --offers | Structure, Array of Structure | ✔ | Array of product descriptions |
|
||||
| OwnImages | --pmedia | Boolean | ✖ | A flag of using only your own product images |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Yandex Market
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [Adding products to the catalogue and changing information about them](https://yandex.ru/dev/market/partner-api/doc/ru/reference/business-assortment/updateOfferMappings)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
|
||||
AccountID = "172257075";
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||
Video = "https://api.athenaeum.digital/test_data/video.mp4";
|
||||
|
||||
UpdatesStructure = New Structure;
|
||||
|
||||
ItemStructure = New Structure;
|
||||
ItemStructure.Insert("offerId" , "11111");
|
||||
ItemStructure.Insert("name" , "Makita HP1630 impact drill, 710 W");
|
||||
ItemStructure.Insert("marketCategoryId", 15221861);
|
||||
ItemStructure.Insert("category" , "Drill");
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image);
|
||||
|
||||
ItemStructure.Insert("pictures", ImageArray);
|
||||
|
||||
VideosArray = New Array;
|
||||
VideosArray.Add(Video);
|
||||
|
||||
ItemStructure.Insert("videos", VideosArray);
|
||||
ItemStructure.Insert("vendor", "LEVENHUK");
|
||||
|
||||
BarcodesArray = New Array;
|
||||
BarcodesArray.Add("46012300000000");
|
||||
|
||||
ItemStructure.Insert("barcodes" , BarcodesArray);
|
||||
ItemStructure.Insert("description", "Description");
|
||||
|
||||
CountriesArray = New Array;
|
||||
CountriesArray.Add("Russia");
|
||||
|
||||
ItemStructure.Insert("manufacturerCountries", CountriesArray);
|
||||
|
||||
SizesStructure = New Structure;
|
||||
SizesStructure.Insert("length", 65.55);
|
||||
SizesStructure.Insert("width" , 50.7);
|
||||
SizesStructure.Insert("height", 20);
|
||||
SizesStructure.Insert("weight", 1.001);
|
||||
|
||||
ItemStructure.Insert("weightDimensions", SizesStructure);
|
||||
ItemStructure.Insert("vendorCode" , "VNDR-0005A");
|
||||
|
||||
TagsArray = New Array;
|
||||
TagsArray.Add("up to 500 roubles");
|
||||
|
||||
ItemStructure.Insert("tags", TagsArray);
|
||||
|
||||
PeriodStructure = New Structure;
|
||||
PeriodStructure.Insert("timePeriod", 24);
|
||||
PeriodStructure.Insert("timeUnit" , "HOUR");
|
||||
PeriodStructure.Insert("comment" , "Comment");
|
||||
|
||||
ItemStructure.Insert("shelfLife" , PeriodStructure);
|
||||
ItemStructure.Insert("lifeTime" , PeriodStructure);
|
||||
ItemStructure.Insert("guaranteePeriod" , PeriodStructure);
|
||||
ItemStructure.Insert("customsCommodityCode", 8517610008);
|
||||
ItemStructure.Insert("type" , "DEFAULT");
|
||||
ItemStructure.Insert("downloadable" , False);
|
||||
ItemStructure.Insert("adult" , False);
|
||||
|
||||
UpdatesStructure.Insert("offer", ItemStructure);
|
||||
|
||||
Result = OPI_YandexMarket.AddUpdateProducts(Token, AccountID, UpdatesStructure);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,40 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get product structure
|
||||
Gets the structure of product standard fields
|
||||
|
||||
|
||||
|
||||
`Function GetProductStructure(Val Clear = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
|
||||
|
||||
|
||||
Returns: Structure of KeyAndValue - Product fields structure
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Description in the API documentation: [UpdateOfferDTO](https://https:
|
||||
yandex.ru/dev/market/partner-api/doc/ru/reference/business-assortment/updateOfferMappings#updateofferdto)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Product management",
|
||||
"position": "3"
|
||||
}
|
Reference in New Issue
Block a user