1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-05-09 21:49:23 +03:00
parent 21701d24ae
commit 805a6881c8
253 changed files with 8958 additions and 8282 deletions

8
ci/cli_ostesten vendored
View File

@@ -801,6 +801,14 @@ pipeline {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_HTTP_Settings"' powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_HTTP_Settings"'
} }
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_HTTP_HeadersSetting"'
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_HTTP_Authorization"'
}
} }
} }

8
ci/ostesten vendored
View File

@@ -801,6 +801,14 @@ pipeline {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "HTTP_Settings"' powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "HTTP_Settings"'
} }
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "HTTP_HeadersSetting"'
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "HTTP_Authorization"'
}
} }
} }

View File

@@ -0,0 +1,3 @@
{
"URL": "https://httpbin.org"
}

View File

@@ -0,0 +1,3 @@
{
"URL": "https://httpbin.org"
}

View File

@@ -0,0 +1,3 @@
{
"URL": "https://httpbin.org"
}

View File

@@ -0,0 +1,3 @@
{
"URL": "https://httpbin.org"
}

View File

@@ -0,0 +1,4 @@
{
"URL": "https://httpbin.org",
"Image": "https://api.athenaeum.digital/test_data/picture.jpg"
}

View File

@@ -0,0 +1,13 @@
 URL = "https://httpbin.org";
URL = URL + "/get";
AccessKey = "AccessKey";
SecretKey = "SecretKey";
Region = "Region";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddAWS4Authorization(AccessKey, SecretKey, Region) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();

View File

@@ -1,4 +1,4 @@
 URL = "https://httpbin.org";  URL = "https://httpbin.org";
URL = URL + "/get"; URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest() Result = OPI_HTTPRequests.NewRequest()

View File

@@ -0,0 +1,9 @@
 URL = "https://httpbin.org";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddBearerAuthorization("123123") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();

View File

@@ -1,4 +1,4 @@
 URL = "https://httpbin.org";  URL = "https://httpbin.org";
URL = URL + "/get"; URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest() Result = OPI_HTTPRequests.NewRequest()

View File

@@ -0,0 +1,15 @@
 URL = "https://httpbin.org";
URL = URL + "/get";
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody()
.AddOAuthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();

View File

@@ -1,4 +1,4 @@
 URL = "https://httpbin.org";  URL = "https://httpbin.org";
URL = URL + "/get"; URL = URL + "/get";
Headers = New Map; Headers = New Map;

View File

@@ -0,0 +1,16 @@
 URL = "https://httpbin.org";
URL = URL + "/get";
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody()
.AddOAuthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
.SetOAuthV1Algorithm("HMAC", "SHA1") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();

View File

@@ -0,0 +1,22 @@
 URL = "https://httpbin.org";
URL = URL + "/post";
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
NewRequest = OPI_HTTPRequests.NewRequest().Initialize(URL);
Result = NewRequest
.StartMultipartBody()
.AddMultipartFormDataFile("file1", "pic.png", Image, "image/png")
.AddMultipartFormDataField("field1", "Text")
.AddMultipartFormDataField("field2", "10")
.UseBodyFiledsAtOAuth(False) // <---
.AddOauthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat); Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic

View File

@@ -1,5 +1,5 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic); Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);

View File

@@ -1,5 +1,5 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "@testsichee"; ChatID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID); Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);

View File

@@ -1,4 +1,4 @@
 FileID = "CQACAgIAAx0EcNsaZQACQdRoGbvF3fuKZMsxtEog0TwMMxooCAACJn0AAr4g0UiDZa2BkAzQeDYE";  FileID = "CQACAgIAAx0EcNsaZQACQi1oHgz7d_2DqZH4R867ZDwszxCzMAAC93AAAlot8Ujq1IFm88oZjTYE";
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
Result = OPI_Telegram.DownloadFile(Token, FileID); Result = OPI_Telegram.DownloadFile(Token, FileID);

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
NewName = "NewTestTitle"; NewName = "NewTestTitle";
NewIcon = "5310132165583840589"; NewIcon = "5310132165583840589";

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897"; ChatID = "461699897";
ChannelID = "@testsichee"; ChannelID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID); Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic

View File

@@ -1,5 +1,5 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee"; ChannelID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID); Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897"; ChatID = "461699897";
MessageID = "13498"; MessageID = "13562";
Description = "New picture description"; Description = "New picture description";
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description); Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897"; ChatID = "461699897";
MessageID = "13495"; MessageID = "13559";
ButtonArray = New Array; ButtonArray = New Array;
ButtonArray.Add("New button 3"); ButtonArray.Add("New button 3");

View File

@@ -1,6 +1,6 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "@testsichee"; ChatID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Text = "New message text"; Text = "New message text";
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text); Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);

View File

@@ -1,5 +1,5 @@
 Token = "6129457865:AAFyzNYOAFbu...";  Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee"; ChannelID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID); Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);

View File

@@ -2,7 +2,7 @@
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary or File path Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary or File path
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary or File path Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary or File path
Selection = "137"; Selection = "135";
ImageArray = New Array; ImageArray = New Array;
ImageArray.Add(Image1); ImageArray.Add(Image1);

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Property = "3008"; Property = "3034";
OptionArray = New Array; OptionArray = New Array;
OptionArray.Add("Yellow"); OptionArray.Add("Yellow");
OptionArray.Add("Blue"); OptionArray.Add("Blue");

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Product = "11052374"; Product = "11081833";
Selection = "137"; Selection = "135";
Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters); Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters);

View File

@@ -1,3 +1,3 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
DiscussionID = "53374866"; DiscussionID = "53403726";
Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters); Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters);

View File

@@ -1,9 +1,9 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
CampaignNumber = "1031289740"; CampaignNumber = "1031307788";
DailyLimit = 150; DailyLimit = 150;
CategoryNumber = 126; CategoryNumber = 126;
PostID = "7738"; PostID = "7867";
AccountID = "1607951446"; AccountID = "1607951446";
Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID, Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID,

View File

@@ -2,8 +2,8 @@
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; Image1 = "https://api.athenaeum.digital/test_data/picture.jpg";
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg";
PropVariant1 = "5875"; PropVariant1 = "5982";
PropVariant2 = "5876"; PropVariant2 = "5983";
ImageArray = New Array; ImageArray = New Array;
ImageArray.Add(Image1); ImageArray.Add(Image1);

View File

@@ -1,4 +1,4 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
AlbumID = "308616864"; AlbumID = "308693519";
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters); Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);

View File

@@ -1,5 +1,5 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Selection = "137"; Selection = "135";
Result = OPI_VK.DeleteSelection(Selection, Parameters); Result = OPI_VK.DeleteSelection(Selection, Parameters);

View File

@@ -1,4 +1,4 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
ImageID = "457255475"; ImageID = "457255734";
Result = OPI_VK.DeleteImage(ImageID, Parameters); Result = OPI_VK.DeleteImage(ImageID, Parameters);

View File

@@ -1,4 +1,4 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
PostID = "7738"; PostID = "7867";
Result = OPI_VK.DeletePost(PostID, Parameters); Result = OPI_VK.DeletePost(PostID, Parameters);

View File

@@ -1,5 +1,5 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Product = "11052374"; Product = "11081833";
Result = OPI_VK.DeleteProduct(Product, Parameters); Result = OPI_VK.DeleteProduct(Product, Parameters);

View File

@@ -1,5 +1,5 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Property = "3008"; Property = "3034";
Result = OPI_VK.DeleteProductProperty(Property, Parameters); Result = OPI_VK.DeleteProductProperty(Property, Parameters);

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Option = "5875"; Option = "5982";
Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters); Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters);

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Product = "11052374"; Product = "11081833";
ProductDescription = New Map; ProductDescription = New Map;
ProductDescription.Insert("Name", "EditedTestProduct"); ProductDescription.Insert("Name", "EditedTestProduct");

View File

@@ -1,7 +1,7 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Name = "EditedCollection"; Name = "EditedCollection";
Selection = "137"; Selection = "135";
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters); Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Name = "Color (change.)"; Name = "Color (change.)";
Property = "3008"; Property = "3034";
Result = OPI_VK.EditProductProperty(Name, Property, Parameters); Result = OPI_VK.EditProductProperty(Name, Property, Parameters);

View File

@@ -1,7 +1,7 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Property = "3008"; Property = "3034";
Option = "5875"; Option = "5982";
Value = "New variant name"; Value = "New variant name";
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters); Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);

View File

@@ -1,7 +1,7 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Item1 = "11052375"; Item1 = "11081835";
Item2 = "11052376"; Item2 = "11081836";
ProductsArray = New Array; ProductsArray = New Array;
ProductsArray.Add(Item1); ProductsArray.Add(Item1);

View File

@@ -1,4 +1,4 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Selection = "137"; Selection = "135";
Result = OPI_VK.GetSelectionsByID(Selection, Parameters); Result = OPI_VK.GetSelectionsByID(Selection, Parameters);

View File

@@ -1,7 +1,7 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Item1 = "11052375"; Item1 = "11081835";
Item2 = "11052376"; Item2 = "11081836";
ProductsArray = New Array; ProductsArray = New Array;
ProductsArray.Add(Item1); ProductsArray.Add(Item1);

View File

@@ -1,4 +1,4 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
PostID = "7738"; PostID = "7867";
Result = OPI_VK.LikePost(PostID, , Parameters); Result = OPI_VK.LikePost(PostID, , Parameters);

View File

@@ -1,3 +1,3 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
DiscussionID = "53374866"; DiscussionID = "53403726";
Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters); Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters);

View File

@@ -1,5 +1,5 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
DiscussionID = "53374866"; DiscussionID = "53403726";
Message = "I like yellow more"; Message = "I like yellow more";
Result = OPI_VK.WriteInDiscussion(DiscussionID, Message, Parameters); Result = OPI_VK.WriteInDiscussion(DiscussionID, Message, Parameters);

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Product = "11052374"; Product = "11081833";
Selection = "137"; Selection = "135";
Result = OPI_VK.RemoveProductFromSelection(Product, Selection, Parameters); Result = OPI_VK.RemoveProductFromSelection(Product, Selection, Parameters);

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
ImageDescription = "AutoTestImage"; ImageDescription = "AutoTestImage";
AlbumID = "308616864"; AlbumID = "308693519";
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, File path or Binary Data Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, File path or Binary Data
TFN = GetTempFileName("png"); TFN = GetTempFileName("png");

View File

@@ -1,6 +1,6 @@
 Parameters = GetVKParameters();  Parameters = GetVKParameters();
Text = "NewComment"; Text = "NewComment";
PostID = "7738"; PostID = "7867";
WallID = Parameters["owner_id"]; WallID = Parameters["owner_id"];
Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters); Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/15c8e799-0071-41db-8218-236514d8f0c6.png"; Path = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
Result = OPI_YandexDisk.CancelObjectPublication(Token, Path); Result = OPI_YandexDisk.CancelObjectPublication(Token, Path);

View File

@@ -1,5 +1,5 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Original = "/15c8e799-0071-41db-8218-236514d8f0c6.png"; Original = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
Path = "/" + String(New UUID) + ".png"; Path = "/" + String(New UUID) + ".png";
Result = OPI_YandexDisk.CreateObjectCopy(Token, Original, Path, True); Result = OPI_YandexDisk.CreateObjectCopy(Token, Original, Path, True);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/88ff2e96-3270-4216-b443-151f90e2ccec.png"; Path = "/c8286aeb-2b07-4e8a-b89b-6370aa0d05e0.png";
Result = OPI_YandexDisk.DeleteObject(Token, Path, False); Result = OPI_YandexDisk.DeleteObject(Token, Path, False);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/8e8e4a85-31db-4c1f-96d8-0f2421bd2fdb.png"; Path = "/e8c956ed-d046-4384-a081-efbca8beb4c6.png";
Result = OPI_YandexDisk.DownloadFile(Token, Path); Result = OPI_YandexDisk.DownloadFile(Token, Path);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/8e8e4a85-31db-4c1f-96d8-0f2421bd2fdb.png"; Path = "/e8c956ed-d046-4384-a081-efbca8beb4c6.png";
Result = OPI_YandexDisk.GetDownloadLink(Token, Path); Result = OPI_YandexDisk.GetDownloadLink(Token, Path);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
URL = "https://yadi.sk/d/LzS4Q4RyJFUzhg"; URL = "https://yadi.sk/d/dVfhWN_QDgL9dA";
Result = OPI_YandexDisk.GetDownloadLinkForPublicObject(Token, URL); Result = OPI_YandexDisk.GetDownloadLinkForPublicObject(Token, URL);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/88ff2e96-3270-4216-b443-151f90e2ccec.png"; Path = "/c8286aeb-2b07-4e8a-b89b-6370aa0d05e0.png";
Result = OPI_YandexDisk.GetObject(Token, Path); Result = OPI_YandexDisk.GetObject(Token, Path);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
URL = "https://yadi.sk/d/LzS4Q4RyJFUzhg"; URL = "https://yadi.sk/d/dVfhWN_QDgL9dA";
Result = OPI_YandexDisk.GetPublicObject(Token, URL); Result = OPI_YandexDisk.GetPublicObject(Token, URL);

View File

@@ -1,5 +1,5 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Original = "/15c8e799-0071-41db-8218-236514d8f0c6.png"; Original = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
Path = "/" + String(New UUID) + ".png"; Path = "/" + String(New UUID) + ".png";
Result = OPI_YandexDisk.MoveObject(Token, Original, Path, True); Result = OPI_YandexDisk.MoveObject(Token, Original, Path, True);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/15c8e799-0071-41db-8218-236514d8f0c6.png"; Path = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
Result = OPI_YandexDisk.PublishObject(Token, Path); Result = OPI_YandexDisk.PublishObject(Token, Path);

View File

@@ -1,4 +1,4 @@
 Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";  Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
URL = "https://yadi.sk/d/LzS4Q4RyJFUzhg"; URL = "https://yadi.sk/d/dVfhWN_QDgL9dA";
Result = OPI_YandexDisk.SavePublicObjectToDisk(Token, URL); Result = OPI_YandexDisk.SavePublicObjectToDisk(Token, URL);

View File

@@ -35,7 +35,19 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
AccessKey = "AccessKey";
SecretKey = "SecretKey";
Region = "Region";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddAWS4Authorization(AccessKey, SecretKey, Region) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
``` ```

View File

@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org"; URL = "https://httpbin.org";
URL = URL + "/get"; URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest() Result = OPI_HTTPRequests.NewRequest()

View File

@@ -27,7 +27,15 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddBearerAuthorization("123123") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
``` ```

View File

@@ -35,7 +35,21 @@ By default, HMAC-SHA256 is used to create the signature. To change the algorithm
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody()
.AddOAuthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
``` ```

View File

@@ -28,7 +28,22 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody()
.AddOAuthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
.SetOAuthV1Algorithm("HMAC", "SHA1") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
``` ```

View File

@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org"; URL = "https://httpbin.org";
URL = URL + "/get"; URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest() Result = OPI_HTTPRequests.NewRequest()

View File

@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org"; URL = "https://httpbin.org";
URL = URL + "/get"; URL = URL + "/get";
Headers = New Map; Headers = New Map;

View File

@@ -1,22 +1,22 @@
--- ---
sidebar_position: 3 sidebar_position: 3
description: Use multipart fields at OAuth and other functions to work with HTTP-client in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI description: Use body fields at OAuth and other functions to work with HTTP-client in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, HTTP-client] keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, HTTP-client]
--- ---
import Tabs from '@theme/Tabs'; import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem'; import TabItem from '@theme/TabItem';
# Use multipart fields at OAuth # Use body fields at OAuth
Includes or excludes multipart body fields when calculating the OAuth signature depending on server requirements Includes or excludes body fields when calculating the OAuth signature depending on server requirements
`Function UseMultipartFieldsAtOAuth(Val Flag) Export` `Function UseBodyFiledsAtOAuth(Val Flag) Export`
| Parameter | CLI option | Type | Required | Description | | Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-| |-|-|-|-|-|
| Flag | --use | Boolean | &#x2714; | Sign of using multipart fields in OAuth | | Flag | --use | Boolean | &#x2714; | Flag to use body fields in OAuth signature calculation |
Returns: DataProcessorObject.OPI_HTTPClient - This processor object Returns: DataProcessorObject.OPI_HTTPClient - This processor object
@@ -24,7 +24,7 @@ import TabItem from '@theme/TabItem';
<br/> <br/>
:::tip :::tip
Multipart fields are used for signature calculation by default By default, the body data is used in the signature calculation
::: :::
<br/> <br/>
@@ -49,7 +49,7 @@ Multipart fields are used for signature calculation by default
.AddMultipartFormDataFile("file1", "pic.png", Image, "image/png") .AddMultipartFormDataFile("file1", "pic.png", Image, "image/png")
.AddMultipartFormDataField("field1", "Text") .AddMultipartFormDataField("field1", "Text")
.AddMultipartFormDataField("field2", "10") .AddMultipartFormDataField("field2", "10")
.UseMultipartFieldsAtOAuth(False) // <--- .UseBodyFiledsAtOAuth(False) // <---
.AddOauthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version) .AddOauthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
.ProcessRequest("POST") .ProcessRequest("POST")
.ReturnResponseAsJSONObject(); .ReturnResponseAsJSONObject();

View File

@@ -35,7 +35,7 @@ Method at API documentation: [pinChatMessage](https://core.telegram.org/bots/api
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee"; ChannelID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID); Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
``` ```

View File

@@ -35,7 +35,7 @@ Method at API documentation: [unpinChatMessage](https://core.telegram.org/bots/a
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee"; ChannelID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID); Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
``` ```

View File

@@ -32,7 +32,7 @@ Method at API documentation: [getFile](https://core.telegram.org/bots/api#getfil
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
FileID = "CQACAgIAAx0EcNsaZQACQdRoGbvF3fuKZMsxtEog0TwMMxooCAACJn0AAr4g0UiDZa2BkAzQeDYE"; FileID = "CQACAgIAAx0EcNsaZQACQi1oHgz7d_2DqZH4R867ZDwszxCzMAAC93AAAlot8Ujq1IFm88oZjTYE";
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
Result = OPI_Telegram.DownloadFile(Token, FileID); Result = OPI_Telegram.DownloadFile(Token, FileID);

View File

@@ -35,7 +35,7 @@ Method at API documentation: [deleteMessage](https://core.telegram.org/bots/api#
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "@testsichee"; ChatID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID); Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
``` ```

View File

@@ -37,7 +37,7 @@ Method at API documentation: [forwardMessage](https://core.telegram.org/bots/api
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897"; ChatID = "461699897";
ChannelID = "@testsichee"; ChannelID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID); Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
``` ```

View File

@@ -37,7 +37,7 @@ Method at API documentation: [editMessageCaption](https://core.telegram.org/bots
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897"; ChatID = "461699897";
MessageID = "13498"; MessageID = "13562";
Description = "New picture description"; Description = "New picture description";
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description); Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);

View File

@@ -36,7 +36,7 @@ Method at API documentation: [editMessageReplyMarkup](https://core.telegram.org/
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "461699897"; ChatID = "461699897";
MessageID = "13495"; MessageID = "13559";
ButtonArray = New Array; ButtonArray = New Array;
ButtonArray.Add("New button 3"); ButtonArray.Add("New button 3");

View File

@@ -37,7 +37,7 @@ Method at API documentation: [editMessageText](https://core.telegram.org/bots/ap
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "@testsichee"; ChatID = "@testsichee";
MessageID = "16843"; MessageID = "16932";
Text = "New message text"; Text = "New message text";
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text); Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);

View File

@@ -35,7 +35,7 @@ Method at API documentation: [deleteForumTopic](https://core.telegram.org/bots/a
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic); Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
``` ```

View File

@@ -37,7 +37,7 @@ Method at API documentation: [editForumTopic](https://core.telegram.org/bots/api
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu..."; Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208"; Chat = "-1001971186208";
Topic = "9501"; Topic = "9545";
NewName = "NewTestTitle"; NewName = "NewTestTitle";
NewIcon = "5310132165583840589"; NewIcon = "5310132165583840589";

View File

@@ -34,10 +34,10 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
CampaignNumber = "1031289740"; CampaignNumber = "1031307788";
DailyLimit = 150; DailyLimit = 150;
CategoryNumber = 126; CategoryNumber = 126;
PostID = "7738"; PostID = "7867";
AccountID = "1607951446"; AccountID = "1607951446";
Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID, Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID,

View File

@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
AlbumID = "308616864"; AlbumID = "308693519";
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters); Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);
``` ```

View File

@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
ImageID = "457255475"; ImageID = "457255734";
Result = OPI_VK.DeleteImage(ImageID, Parameters); Result = OPI_VK.DeleteImage(ImageID, Parameters);
``` ```

View File

@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
PostID = "7738"; PostID = "7867";
Result = OPI_VK.DeletePost(PostID, Parameters); Result = OPI_VK.DeletePost(PostID, Parameters);
``` ```

View File

@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
DiscussionID = "53374866"; DiscussionID = "53403726";
Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters); Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters);
``` ```

View File

@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
DiscussionID = "53374866"; DiscussionID = "53403726";
Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters); Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters);
``` ```

View File

@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
PostID = "7738"; PostID = "7867";
Result = OPI_VK.LikePost(PostID, , Parameters); Result = OPI_VK.LikePost(PostID, , Parameters);
``` ```

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Text = "NewComment"; Text = "NewComment";
PostID = "7738"; PostID = "7867";
WallID = Parameters["owner_id"]; WallID = Parameters["owner_id"];
Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters); Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters);

View File

@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary or File path Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary or File path
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary or File path Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary or File path
Selection = "137"; Selection = "135";
ImageArray = New Array; ImageArray = New Array;
ImageArray.Add(Image1); ImageArray.Add(Image1);

View File

@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Product = "11052374"; Product = "11081833";
Result = OPI_VK.DeleteProduct(Product, Parameters); Result = OPI_VK.DeleteProduct(Product, Parameters);
``` ```

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Product = "11052374"; Product = "11081833";
ProductDescription = New Map; ProductDescription = New Map;
ProductDescription.Insert("Name", "EditedTestProduct"); ProductDescription.Insert("Name", "EditedTestProduct");

View File

@@ -30,8 +30,8 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Item1 = "11052375"; Item1 = "11081835";
Item2 = "11052376"; Item2 = "11081836";
ProductsArray = New Array; ProductsArray = New Array;
ProductsArray.Add(Item1); ProductsArray.Add(Item1);

View File

@@ -31,8 +31,8 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Item1 = "11052375"; Item1 = "11081835";
Item2 = "11052376"; Item2 = "11081836";
ProductsArray = New Array; ProductsArray = New Array;
ProductsArray.Add(Item1); ProductsArray.Add(Item1);

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Property = "3008"; Property = "3034";
OptionArray = New Array; OptionArray = New Array;
OptionArray.Add("Yellow"); OptionArray.Add("Yellow");
OptionArray.Add("Blue"); OptionArray.Add("Blue");

View File

@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Option = "5875"; Option = "5982";
Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters); Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters);

View File

@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Property = "3008"; Property = "3034";
Result = OPI_VK.DeleteProductProperty(Property, Parameters); Result = OPI_VK.DeleteProductProperty(Property, Parameters);
``` ```

View File

@@ -32,8 +32,8 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example" ```bsl title="1C:Enterprise/OneScript code example"
Parameters = GetVKParameters(); Parameters = GetVKParameters();
Property = "3008"; Property = "3034";
Option = "5875"; Option = "5982";
Value = "New variant name"; Value = "New variant name";
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters); Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);

Some files were not shown because too many files have changed in this diff Show More