1
0
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:
Vitaly the Alpaca (bot)
2024-11-05 22:19:58 +03:00
parent 96c7bff65c
commit 88976f4012
65 changed files with 7788 additions and 5261 deletions

View 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"
}

View File

@ -0,0 +1,4 @@
{
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
"AccountID": "172257075"
}

View File

@ -0,0 +1,4 @@
{
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
"CampaignID": "129112733"
}

View File

@ -0,0 +1,4 @@
{
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO...",
"CampaignID": "129112733"
}

View File

@ -0,0 +1,3 @@
{
"Token": "ACMA:WRvGsjClMPDCqrhwBNOFRO..."
}

View 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);

View File

@ -0,0 +1,4 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
AccountID = "172257075";
Result = OPI_YandexMarket.GetBusinessSettings(Token, AccountID);

View File

@ -0,0 +1,4 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
CampaignID = "129112733";
Result = OPI_YandexMarket.GetCampaignSettings(Token, CampaignID);

View File

@ -0,0 +1,4 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
CampaignID = "129112733";
Result = OPI_YandexMarket.GetMarket(Token, CampaignID);

View File

@ -0,0 +1,3 @@
 Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
Result = OPI_YandexMarket.GetMarketsList(Token);

View File

@ -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"
```

View File

@ -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 | &#x2714; | token |
| CampaignID | --campaign | String, Number | &#x2714; | 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"
```

View File

@ -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 | &#x2714; | token |
| CampaignID | --campaign | String, Number | &#x2714; | 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"
```

View File

@ -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 | &#x2714; | token |
| Page | --page | Number | &#x2716; | 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"
```

View File

@ -0,0 +1,4 @@
{
"label": "Campaigns and business",
"position": "2"
}

View File

@ -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 | &#x2714; | token |
| AccountID | --business | String, Number | &#x2714; | Business ID |
| ProductsArray | --offers | Structure, Array of Structure | &#x2714; | Array of product descriptions |
| OwnImages | --pmedia | Boolean | &#x2716; | 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"
```

View File

@ -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 | &#x2716; | 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"
```

View File

@ -0,0 +1,4 @@
{
"label": "Product management",
"position": "3"
}