You've already forked OpenIntegrations
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:
8
ci/cli_ostesten
vendored
8
ci/cli_ostesten
vendored
@@ -801,6 +801,14 @@ pipeline {
|
||||
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
8
ci/ostesten
vendored
@@ -801,6 +801,14 @@ pipeline {
|
||||
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"'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
3
docs/en/data/HTTPClient/AddAWS4Authorization.json
vendored
Normal file
3
docs/en/data/HTTPClient/AddAWS4Authorization.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"URL": "https://httpbin.org"
|
||||
}
|
||||
3
docs/en/data/HTTPClient/AddBearerAuthorization.json
vendored
Normal file
3
docs/en/data/HTTPClient/AddBearerAuthorization.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"URL": "https://httpbin.org"
|
||||
}
|
||||
3
docs/en/data/HTTPClient/AddOAuthV1Authorization.json
vendored
Normal file
3
docs/en/data/HTTPClient/AddOAuthV1Authorization.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"URL": "https://httpbin.org"
|
||||
}
|
||||
3
docs/en/data/HTTPClient/SetOAuthV1Algorithm.json
vendored
Normal file
3
docs/en/data/HTTPClient/SetOAuthV1Algorithm.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"URL": "https://httpbin.org"
|
||||
}
|
||||
4
docs/en/data/HTTPClient/UseBodyFiledsAtOAuth.json
vendored
Normal file
4
docs/en/data/HTTPClient/UseBodyFiledsAtOAuth.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "https://httpbin.org",
|
||||
"Image": "https://api.athenaeum.digital/test_data/picture.jpg"
|
||||
}
|
||||
13
docs/en/examples/HTTPClient/AddAWS4Authorization.txt
vendored
Normal file
13
docs/en/examples/HTTPClient/AddAWS4Authorization.txt
vendored
Normal 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();
|
||||
9
docs/en/examples/HTTPClient/AddBearerAuthorization.txt
vendored
Normal file
9
docs/en/examples/HTTPClient/AddBearerAuthorization.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize()
|
||||
.SetURL(URL)
|
||||
.AddBearerAuthorization("123123") // <---
|
||||
.ProcessRequest("GET")
|
||||
.ReturnResponseAsJSONObject();
|
||||
15
docs/en/examples/HTTPClient/AddOAuthV1Authorization.txt
vendored
Normal file
15
docs/en/examples/HTTPClient/AddOAuthV1Authorization.txt
vendored
Normal 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();
|
||||
16
docs/en/examples/HTTPClient/SetOAuthV1Algorithm.txt
vendored
Normal file
16
docs/en/examples/HTTPClient/SetOAuthV1Algorithm.txt
vendored
Normal 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();
|
||||
22
docs/en/examples/HTTPClient/UseBodyFiledsAtOAuth.txt
vendored
Normal file
22
docs/en/examples/HTTPClient/UseBodyFiledsAtOAuth.txt
vendored
Normal 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();
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
|
||||
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
|
||||
Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
|
||||
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
||||
|
||||
2
docs/en/examples/Telegram/DeleteMessage.txt
vendored
2
docs/en/examples/Telegram/DeleteMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
||||
|
||||
2
docs/en/examples/Telegram/DownloadFile.txt
vendored
2
docs/en/examples/Telegram/DownloadFile.txt
vendored
@@ -1,4 +1,4 @@
|
||||
FileID = "CQACAgIAAx0EcNsaZQACQdRoGbvF3fuKZMsxtEog0TwMMxooCAACJn0AAr4g0UiDZa2BkAzQeDYE";
|
||||
FileID = "CQACAgIAAx0EcNsaZQACQi1oHgz7d_2DqZH4R867ZDwszxCzMAAC93AAAlot8Ujq1IFm88oZjTYE";
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
|
||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||
|
||||
2
docs/en/examples/Telegram/EditForumTopic.txt
vendored
2
docs/en/examples/Telegram/EditForumTopic.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
NewName = "NewTestTitle";
|
||||
NewIcon = "5310132165583840589";
|
||||
|
||||
|
||||
2
docs/en/examples/Telegram/ForwardMessage.txt
vendored
2
docs/en/examples/Telegram/ForwardMessage.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
||||
|
||||
2
docs/en/examples/Telegram/OpenForumTopic.txt
vendored
2
docs/en/examples/Telegram/OpenForumTopic.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
|
||||
Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic
|
||||
|
||||
|
||||
2
docs/en/examples/Telegram/PinMessage.txt
vendored
2
docs/en/examples/Telegram/PinMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "13498";
|
||||
MessageID = "13562";
|
||||
|
||||
Description = "New picture description";
|
||||
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "13495";
|
||||
MessageID = "13559";
|
||||
|
||||
ButtonArray = New Array;
|
||||
ButtonArray.Add("New button 3");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);
|
||||
|
||||
2
docs/en/examples/Telegram/UnpinMessage.txt
vendored
2
docs/en/examples/Telegram/UnpinMessage.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
||||
|
||||
2
docs/en/examples/VK/AddProduct.txt
vendored
2
docs/en/examples/VK/AddProduct.txt
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
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
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "3008";
|
||||
Property = "3034";
|
||||
OptionArray = New Array;
|
||||
OptionArray.Add("Yellow");
|
||||
OptionArray.Add("Blue");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Selection = "137";
|
||||
Product = "11081833";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/CloseDiscussion.txt
vendored
2
docs/en/examples/VK/CloseDiscussion.txt
vendored
@@ -1,3 +1,3 @@
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "53374866";
|
||||
DiscussionID = "53403726";
|
||||
Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters);
|
||||
|
||||
4
docs/en/examples/VK/CreateAd.txt
vendored
4
docs/en/examples/VK/CreateAd.txt
vendored
@@ -1,9 +1,9 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
CampaignNumber = "1031289740";
|
||||
CampaignNumber = "1031307788";
|
||||
DailyLimit = 150;
|
||||
CategoryNumber = 126;
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
AccountID = "1607951446";
|
||||
|
||||
Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID,
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
||||
PropVariant1 = "5875";
|
||||
PropVariant2 = "5876";
|
||||
PropVariant1 = "5982";
|
||||
PropVariant2 = "5983";
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image1);
|
||||
|
||||
2
docs/en/examples/VK/DeleteAlbum.txt
vendored
2
docs/en/examples/VK/DeleteAlbum.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
AlbumID = "308616864";
|
||||
AlbumID = "308693519";
|
||||
|
||||
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeleteCollection.txt
vendored
2
docs/en/examples/VK/DeleteCollection.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.DeleteSelection(Selection, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeleteImage.txt
vendored
2
docs/en/examples/VK/DeleteImage.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
ImageID = "457255475";
|
||||
ImageID = "457255734";
|
||||
|
||||
Result = OPI_VK.DeleteImage(ImageID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeletePost.txt
vendored
2
docs/en/examples/VK/DeletePost.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
|
||||
Result = OPI_VK.DeletePost(PostID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/DeleteProduct.txt
vendored
2
docs/en/examples/VK/DeleteProduct.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Product = "11081833";
|
||||
|
||||
Result = OPI_VK.DeleteProduct(Product, Parameters);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "3008";
|
||||
Property = "3034";
|
||||
|
||||
Result = OPI_VK.DeleteProductProperty(Property, Parameters);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Option = "5875";
|
||||
Option = "5982";
|
||||
|
||||
Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters);
|
||||
|
||||
|
||||
2
docs/en/examples/VK/EditProduct.txt
vendored
2
docs/en/examples/VK/EditProduct.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Product = "11081833";
|
||||
|
||||
ProductDescription = New Map;
|
||||
ProductDescription.Insert("Name", "EditedTestProduct");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "EditedCollection";
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);
|
||||
|
||||
|
||||
2
docs/en/examples/VK/EditProductProperty.txt
vendored
2
docs/en/examples/VK/EditProductProperty.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "Color (change.)";
|
||||
Property = "3008";
|
||||
Property = "3034";
|
||||
|
||||
Result = OPI_VK.EditProductProperty(Name, Property, Parameters);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "3008";
|
||||
Option = "5875";
|
||||
Property = "3034";
|
||||
Option = "5982";
|
||||
Value = "New variant name";
|
||||
|
||||
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);
|
||||
|
||||
4
docs/en/examples/VK/GetProductsByID.txt
vendored
4
docs/en/examples/VK/GetProductsByID.txt
vendored
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11052375";
|
||||
Item2 = "11052376";
|
||||
Item1 = "11081835";
|
||||
Item2 = "11081836";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
2
docs/en/examples/VK/GetSelectionsByID.txt
vendored
2
docs/en/examples/VK/GetSelectionsByID.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.GetSelectionsByID(Selection, Parameters);
|
||||
|
||||
4
docs/en/examples/VK/GroupProducts.txt
vendored
4
docs/en/examples/VK/GroupProducts.txt
vendored
@@ -1,7 +1,7 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11052375";
|
||||
Item2 = "11052376";
|
||||
Item1 = "11081835";
|
||||
Item2 = "11081836";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
2
docs/en/examples/VK/LikePost.txt
vendored
2
docs/en/examples/VK/LikePost.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
|
||||
Result = OPI_VK.LikePost(PostID, , Parameters);
|
||||
|
||||
2
docs/en/examples/VK/OpenDiscussion.txt
vendored
2
docs/en/examples/VK/OpenDiscussion.txt
vendored
@@ -1,3 +1,3 @@
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "53374866";
|
||||
DiscussionID = "53403726";
|
||||
Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/PostToDiscussion.txt
vendored
2
docs/en/examples/VK/PostToDiscussion.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "53374866";
|
||||
DiscussionID = "53403726";
|
||||
Message = "I like yellow more";
|
||||
|
||||
Result = OPI_VK.WriteInDiscussion(DiscussionID, Message, Parameters);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Selection = "137";
|
||||
Product = "11081833";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.RemoveProductFromSelection(Product, Selection, Parameters);
|
||||
|
||||
2
docs/en/examples/VK/SavePictureToAlbum.txt
vendored
2
docs/en/examples/VK/SavePictureToAlbum.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
ImageDescription = "AutoTestImage";
|
||||
AlbumID = "308616864";
|
||||
AlbumID = "308693519";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, File path or Binary Data
|
||||
TFN = GetTempFileName("png");
|
||||
|
||||
2
docs/en/examples/VK/WriteComment.txt
vendored
2
docs/en/examples/VK/WriteComment.txt
vendored
@@ -1,6 +1,6 @@
|
||||
Parameters = GetVKParameters();
|
||||
Text = "NewComment";
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
WallID = Parameters["owner_id"];
|
||||
|
||||
Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Path = "/15c8e799-0071-41db-8218-236514d8f0c6.png";
|
||||
Path = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
|
||||
|
||||
Result = OPI_YandexDisk.CancelObjectPublication(Token, Path);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Original = "/15c8e799-0071-41db-8218-236514d8f0c6.png";
|
||||
Original = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
|
||||
Path = "/" + String(New UUID) + ".png";
|
||||
|
||||
Result = OPI_YandexDisk.CreateObjectCopy(Token, Original, Path, True);
|
||||
|
||||
2
docs/en/examples/YandexDisk/DeleteObject.txt
vendored
2
docs/en/examples/YandexDisk/DeleteObject.txt
vendored
@@ -1,4 +1,4 @@
|
||||
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);
|
||||
|
||||
2
docs/en/examples/YandexDisk/DownloadFile.txt
vendored
2
docs/en/examples/YandexDisk/DownloadFile.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Path = "/8e8e4a85-31db-4c1f-96d8-0f2421bd2fdb.png";
|
||||
Path = "/e8c956ed-d046-4384-a081-efbca8beb4c6.png";
|
||||
|
||||
Result = OPI_YandexDisk.DownloadFile(Token, Path);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Path = "/8e8e4a85-31db-4c1f-96d8-0f2421bd2fdb.png";
|
||||
Path = "/e8c956ed-d046-4384-a081-efbca8beb4c6.png";
|
||||
|
||||
Result = OPI_YandexDisk.GetDownloadLink(Token, Path);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
URL = "https://yadi.sk/d/LzS4Q4RyJFUzhg";
|
||||
URL = "https://yadi.sk/d/dVfhWN_QDgL9dA";
|
||||
|
||||
Result = OPI_YandexDisk.GetDownloadLinkForPublicObject(Token, URL);
|
||||
|
||||
2
docs/en/examples/YandexDisk/GetObject.txt
vendored
2
docs/en/examples/YandexDisk/GetObject.txt
vendored
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Path = "/88ff2e96-3270-4216-b443-151f90e2ccec.png";
|
||||
Path = "/c8286aeb-2b07-4e8a-b89b-6370aa0d05e0.png";
|
||||
|
||||
Result = OPI_YandexDisk.GetObject(Token, Path);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
URL = "https://yadi.sk/d/LzS4Q4RyJFUzhg";
|
||||
URL = "https://yadi.sk/d/dVfhWN_QDgL9dA";
|
||||
|
||||
Result = OPI_YandexDisk.GetPublicObject(Token, URL);
|
||||
|
||||
2
docs/en/examples/YandexDisk/MoveObject.txt
vendored
2
docs/en/examples/YandexDisk/MoveObject.txt
vendored
@@ -1,5 +1,5 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Original = "/15c8e799-0071-41db-8218-236514d8f0c6.png";
|
||||
Original = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
|
||||
Path = "/" + String(New UUID) + ".png";
|
||||
|
||||
Result = OPI_YandexDisk.MoveObject(Token, Original, Path, True);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Path = "/15c8e799-0071-41db-8218-236514d8f0c6.png";
|
||||
Path = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
|
||||
|
||||
Result = OPI_YandexDisk.PublishObject(Token, Path);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
URL = "https://yadi.sk/d/LzS4Q4RyJFUzhg";
|
||||
URL = "https://yadi.sk/d/dVfhWN_QDgL9dA";
|
||||
|
||||
Result = OPI_YandexDisk.SavePublicObjectToDisk(Token, URL);
|
||||
|
||||
@@ -35,7 +35,19 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +27,15 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,22 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
---
|
||||
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]
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Use multipart fields at OAuth
|
||||
Includes or excludes multipart body fields when calculating the OAuth signature depending on server requirements
|
||||
# Use body fields at OAuth
|
||||
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 |
|
||||
|-|-|-|-|-|
|
||||
| Flag | --use | Boolean | ✔ | Sign of using multipart fields in OAuth |
|
||||
| Flag | --use | Boolean | ✔ | Flag to use body fields in OAuth signature calculation |
|
||||
|
||||
|
||||
Returns: DataProcessorObject.OPI_HTTPClient - This processor object
|
||||
@@ -24,7 +24,7 @@ import TabItem from '@theme/TabItem';
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Multipart fields are used for signature calculation by default
|
||||
By default, the body data is used in the signature calculation
|
||||
:::
|
||||
<br/>
|
||||
|
||||
@@ -49,7 +49,7 @@ Multipart fields are used for signature calculation by default
|
||||
.AddMultipartFormDataFile("file1", "pic.png", Image, "image/png")
|
||||
.AddMultipartFormDataField("field1", "Text")
|
||||
.AddMultipartFormDataField("field2", "10")
|
||||
.UseMultipartFieldsAtOAuth(False) // <---
|
||||
.UseBodyFiledsAtOAuth(False) // <---
|
||||
.AddOauthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsJSONObject();
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [pinChatMessage](https://core.telegram.org/bots/api
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
|
||||
```
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [unpinChatMessage](https://core.telegram.org/bots/a
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
|
||||
```
|
||||
|
||||
@@ -32,7 +32,7 @@ Method at API documentation: [getFile](https://core.telegram.org/bots/api#getfil
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
FileID = "CQACAgIAAx0EcNsaZQACQdRoGbvF3fuKZMsxtEog0TwMMxooCAACJn0AAr4g0UiDZa2BkAzQeDYE";
|
||||
FileID = "CQACAgIAAx0EcNsaZQACQi1oHgz7d_2DqZH4R867ZDwszxCzMAAC93AAAlot8Ujq1IFm88oZjTYE";
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
|
||||
Result = OPI_Telegram.DownloadFile(Token, FileID);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [deleteMessage](https://core.telegram.org/bots/api#
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [forwardMessage](https://core.telegram.org/bots/api
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
ChannelID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
|
||||
Result = OPI_Telegram.ForwardMessage(Token, MessageID, ChannelID, ChatID);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [editMessageCaption](https://core.telegram.org/bots
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "13498";
|
||||
MessageID = "13562";
|
||||
|
||||
Description = "New picture description";
|
||||
Result = OPI_Telegram.ReplaceMessageCaption(Token, ChatID, MessageID, Description);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [editMessageReplyMarkup](https://core.telegram.org/
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "461699897";
|
||||
MessageID = "13495";
|
||||
MessageID = "13559";
|
||||
|
||||
ButtonArray = New Array;
|
||||
ButtonArray.Add("New button 3");
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [editMessageText](https://core.telegram.org/bots/ap
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
ChatID = "@testsichee";
|
||||
MessageID = "16843";
|
||||
MessageID = "16932";
|
||||
Text = "New message text";
|
||||
|
||||
Result = OPI_Telegram.ReplaceMessageText(Token, ChatID, MessageID, Text);
|
||||
|
||||
@@ -35,7 +35,7 @@ Method at API documentation: [deleteForumTopic](https://core.telegram.org/bots/a
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
|
||||
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ Method at API documentation: [editForumTopic](https://core.telegram.org/bots/api
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "6129457865:AAFyzNYOAFbu...";
|
||||
Chat = "-1001971186208";
|
||||
Topic = "9501";
|
||||
Topic = "9545";
|
||||
NewName = "NewTestTitle";
|
||||
NewIcon = "5310132165583840589";
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
CampaignNumber = "1031289740";
|
||||
CampaignNumber = "1031307788";
|
||||
DailyLimit = 150;
|
||||
CategoryNumber = 126;
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
AccountID = "1607951446";
|
||||
|
||||
Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID,
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
AlbumID = "308616864";
|
||||
AlbumID = "308693519";
|
||||
|
||||
Result = OPI_VK.DeleteAlbum(AlbumID, Parameters);
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
ImageID = "457255475";
|
||||
ImageID = "457255734";
|
||||
|
||||
Result = OPI_VK.DeleteImage(ImageID, Parameters);
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
|
||||
Result = OPI_VK.DeletePost(PostID, Parameters);
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "53374866";
|
||||
DiscussionID = "53403726";
|
||||
Result = OPI_VK.CloseDiscussion(DiscussionID, False, Parameters);
|
||||
```
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
DiscussionID = "53374866";
|
||||
DiscussionID = "53403726";
|
||||
Result = OPI_VK.OpenDiscussion(DiscussionID, Parameters);
|
||||
```
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
|
||||
Result = OPI_VK.LikePost(PostID, , Parameters);
|
||||
```
|
||||
|
||||
@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
Text = "NewComment";
|
||||
PostID = "7738";
|
||||
PostID = "7867";
|
||||
WallID = Parameters["owner_id"];
|
||||
|
||||
Result = OPI_VK.WriteComment(PostID, WallID, Text, Parameters);
|
||||
|
||||
@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
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
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image1);
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Product = "11081833";
|
||||
|
||||
Result = OPI_VK.DeleteProduct(Product, Parameters);
|
||||
```
|
||||
|
||||
@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Product = "11081833";
|
||||
|
||||
ProductDescription = New Map;
|
||||
ProductDescription.Insert("Name", "EditedTestProduct");
|
||||
|
||||
@@ -30,8 +30,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11052375";
|
||||
Item2 = "11052376";
|
||||
Item1 = "11081835";
|
||||
Item2 = "11081836";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
@@ -31,8 +31,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Item1 = "11052375";
|
||||
Item2 = "11052376";
|
||||
Item1 = "11081835";
|
||||
Item2 = "11081836";
|
||||
|
||||
ProductsArray = New Array;
|
||||
ProductsArray.Add(Item1);
|
||||
|
||||
@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "3008";
|
||||
Property = "3034";
|
||||
OptionArray = New Array;
|
||||
OptionArray.Add("Yellow");
|
||||
OptionArray.Add("Blue");
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Option = "5875";
|
||||
Option = "5982";
|
||||
|
||||
Result = OPI_VK.DeleteProductPropertyVariant(Option, Parameters);
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "3008";
|
||||
Property = "3034";
|
||||
|
||||
Result = OPI_VK.DeleteProductProperty(Property, Parameters);
|
||||
```
|
||||
|
||||
@@ -32,8 +32,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Property = "3008";
|
||||
Option = "5875";
|
||||
Property = "3034";
|
||||
Option = "5982";
|
||||
Value = "New variant name";
|
||||
|
||||
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);
|
||||
|
||||
@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "Color (change.)";
|
||||
Property = "3008";
|
||||
Property = "3034";
|
||||
|
||||
Result = OPI_VK.EditProductProperty(Name, Property, Parameters);
|
||||
```
|
||||
|
||||
@@ -31,8 +31,8 @@ import TabItem from '@theme/TabItem';
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Product = "11052374";
|
||||
Selection = "137";
|
||||
Product = "11081833";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.AddProductToCollection(Product, Selection, Parameters);
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
Parameters = GetVKParameters();
|
||||
|
||||
Name = "EditedCollection";
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.EditProductCollection(Name, Selection, , , , Parameters);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Parameters = GetVKParameters();
|
||||
Selection = "137";
|
||||
Selection = "135";
|
||||
|
||||
Result = OPI_VK.GetSelectionsByID(Selection, Parameters);
|
||||
```
|
||||
|
||||
@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
||||
Original = "/15c8e799-0071-41db-8218-236514d8f0c6.png";
|
||||
Original = "/ecca8c66-f8a8-410c-bdac-11d9f9ebfb91.png";
|
||||
Path = "/" + String(New UUID) + ".png";
|
||||
|
||||
Result = OPI_YandexDisk.CreateObjectCopy(Token, Original, Path, True);
|
||||
|
||||
@@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
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);
|
||||
```
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user