1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-13 11:50:53 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot) 2025-03-06 20:58:59 +03:00
parent 3fd76acb25
commit 4b4394db7f
261 changed files with 27505 additions and 26767 deletions

12
ci/clitesten vendored
View File

@ -1497,10 +1497,22 @@ def test_greenapi(){
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ExcludeGroupMember --access "test" --group "test" --user "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi SetAdminRights --access "test" --group "test" --user "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi RevokeAdminRights --access "test" --group "test" --user "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi LeaveGroup --access "test" --group "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi SetGroupPicture --access "test" --group "test" --picture "test" --debug --test '
}
}

12
ci/clitestru vendored
View File

@ -1497,10 +1497,22 @@ def test_greenapi(){
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ИсключитьУчастникаГруппы --access "test" --group "test" --user "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi НазначитьПраваАдминистратора --access "test" --group "test" --user "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ОтозватьПраваАдминистратора --access "test" --group "test" --user "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi ПокинутьГруппу --access "test" --group "test" --debug --test '
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'./oint.exe greenapi УстановитьКартинкуГруппы --access "test" --group "test" --picture "test" --debug --test '
}
}

View File

@ -0,0 +1,7 @@
{
"ApiUrl": "https://7105.api.greenapi.com",
"MediaUrl": "https://7105.media.greenapi.com",
"IdInstance": "71051...",
"ApiTokenInstance": "425010d90e114aa6b78f0969e...",
"GroupID": "120363410798027942@g.us"
}

View File

@ -0,0 +1,7 @@
{
"ApiUrl": "https://7105.api.greenapi.com",
"MediaUrl": "https://7105.media.greenapi.com",
"IdInstance": "71051...",
"ApiTokenInstance": "425010d90e114aa6b78f0969e...",
"GroupID": "120363410798027942@g.us"
}

View File

@ -0,0 +1,8 @@
{
"ApiUrl": "https://7105.api.greenapi.com",
"MediaUrl": "https://7105.media.greenapi.com",
"IdInstance": "71051...",
"ApiTokenInstance": "425010d90e114aa6b78f0969e...",
"Image": "https://api.athenaeum.digital/test_data/picture.jpg",
"GroupID": "120363410798027942@g.us"
}

View File

@ -13,10 +13,5 @@
Time = 7200;
SetupDate = AddMonth(OPI_Tools.GetCurrentDate(), -1);
Result = OPI_Bitrix24.AddTaskTimeAccounting(URL
, TaskID
, Time
, UserID
, Text
, SetupDate
, Token);
Result = OPI_Bitrix24.AddTaskTimeAccounting(URL, TaskID, Time, UserID, Text, SetupDate,
Token);

View File

@ -31,8 +31,8 @@
DaysArray.Add("SA");
DaysArray.Add("MO");
RepeatabilityStructure.Insert("BYDAY" , DaysArray);
RepeatabilityStructure.Insert("UNTIL" , XMLString(Tomorrow + Hour * 24 * 10));
RepeatabilityStructure.Insert("BYDAY", DaysArray);
RepeatabilityStructure.Insert("UNTIL", XMLString(Tomorrow + Hour * 24 * 10));
EventStucture.Insert("rrule" , RepeatabilityStructure);
EventStucture.Insert("is_meeting", "Y");

View File

@ -26,7 +26,7 @@
ChatStructure = New Structure;
ChatStructure.Insert("TYPE" , "CHAT");
ChatStructure.Insert("TITLE" , "Private chat");
ChatStructure.Insert("USERS" , MembersArray);
ChatStructure.Insert("TITLE", "Private chat");
ChatStructure.Insert("USERS", MembersArray);
Result = OPI_Bitrix24.CreateChat(URL, ChatStructure, Token);

View File

@ -19,7 +19,7 @@
Result = OPI_Bitrix24.CreateLead(URL, FieldsStructure);
FieldsStructure.Insert("NAME" , "Ivan");
FieldsStructure.Insert("LAST_NAME" , "Ivanov");
FieldsStructure.Insert("LAST_NAME", "Ivanov");
URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

View File

@ -7,7 +7,7 @@
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, , Attachments);

View File

@ -7,7 +7,7 @@
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, , Attachments);

View File

@ -14,6 +14,6 @@
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.EditMessage(URL, MessageID, Text, Attachments, Token);

View File

@ -2,7 +2,7 @@
// Full filter structure you can find at GetTasksFilterStructure method
Filter = New Map;
Filter.Insert("CREATED_BY" , 1); // Producer with ID 1
Filter.Insert("CREATED_BY", 1); // Producer with ID 1
Filter.Insert("!RESPONSIBLE_ID", 10); // Performers with ID not equal to 10
Filter.Insert(">=CREATED_DATE ", CurrentDate - 60 * 60 * 24); // Creation date >= yesterday

View File

@ -6,7 +6,7 @@
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.SendMessage(URL, ChatID, Text, Attachments);

View File

@ -1,7 +1,7 @@
 FieldsStructure = New Structure;
FieldsStructure.Insert("TITLE" , "Sale in RUB");
FieldsStructure.Insert("CURRENCY_ID" , "RUB");
FieldsStructure.Insert("OPPORTUNITY" , 50000);
FieldsStructure.Insert("CURRENCY_ID", "RUB");
FieldsStructure.Insert("OPPORTUNITY", 50000);
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
DealID = "2910";

View File

@ -13,9 +13,5 @@
ParentID = 1;
HeadID = 10;
Result = OPI_Bitrix24.UpdateDepartment(URL
, DepartmentID
, Name
, ParentID
, HeadID
, Token);
Result = OPI_Bitrix24.UpdateDepartment(URL, DepartmentID, Name, ParentID, HeadID,
Token);

View File

@ -9,7 +9,7 @@
Result = OPI_Bitrix24.UpdateLead(URL, LeadID, FieldsStructure);
FieldsStructure.Insert("NAME" , "Evgeniy");
FieldsStructure.Insert("LAST_NAME" , "Evgeniev");
FieldsStructure.Insert("LAST_NAME", "Evgeniev");
URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

View File

@ -15,10 +15,4 @@
Time = 4800;
SetupDate = AddMonth(OPI_Tools.GetCurrentDate(), -1);
Result = OPI_Bitrix24.UpdateTaskTimeAccounting(URL
, TaskID
, RecordID
, Time
, Text
, SetupDate
, Token);
Result = OPI_Bitrix24.UpdateTaskTimeAccounting(URL, TaskID, RecordID, Time, Text, SetupDate, Token);

View File

@ -19,6 +19,6 @@
UserStructure.Insert("EMAIL" , Email);
UserStructure.Insert("NAME" , "Oleg");
UserStructure.Insert("LAST_NAME" , "Lama");
UserStructure.Insert("UF_DEPARTMENT" , 7);
UserStructure.Insert("UF_DEPARTMENT", 7);
Result = OPI_Bitrix24.UpdateUser(URL, UserID, UserStructure, Token);

View File

@ -18,7 +18,7 @@
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
EventDescription.Insert("ArrayOfAttachmentURLs" , Attachments);
EventDescription.Insert("ArrayOfAttachmentURLs", Attachments);
EventDescription.Insert("SendNotifications" , True);
Result = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventDescription);

View File

@ -4,8 +4,4 @@
SecondaryColor = "#ffd800";
Hidden = False;
Result = OPI_GoogleCalendar.EditListCalendar(Token
, Calendar
, PrimaryColor
, SecondaryColor
, Hidden);
Result = OPI_GoogleCalendar.EditListCalendar(Token, Calendar, PrimaryColor, SecondaryColor, Hidden);

View File

@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);

View File

@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);

View File

@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);

View File

@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);

View File

@ -0,0 +1,10 @@
 ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.RevokeAdminRights(AccessParameters, GroupID, UserID);

View File

@ -0,0 +1,10 @@
 ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.SetAdminRights(AccessParameters, GroupID, UserID);

View File

@ -0,0 +1,10 @@
 ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
Image = "https://api.athenaeum.digital/test_data/picture.jpg";
GroupID = "120363410798027942@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);

View File

@ -3,7 +3,7 @@
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
Name = "New name";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);

View File

@ -7,7 +7,7 @@
Properties.Insert("Description" , "rich_text");
Properties.Insert("Number" , "number");
Properties.Insert("Status" , "status");
Properties.Insert("CreationDate" , "date");
Properties.Insert("CreationDate", "date");
Properties.Insert("Image" , "files");
Properties.Insert("Active" , "checkbox");
Properties.Insert("Website" , "url");
@ -17,7 +17,7 @@
ValueSelection = New Map;
ValueSelection.Insert("New" , "green");
ValueSelection.Insert("InProgress" , "yellow");
ValueSelection.Insert("InProgress", "yellow");
ValueSelection.Insert("Remote" , "red");
Properties.Insert("Status", ValueSelection);

View File

@ -10,7 +10,7 @@
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
Properties.Insert("CreationDate" , OPI_Tools.GetCurrentDate());
Properties.Insert("CreationDate", OPI_Tools.GetCurrentDate());
Properties.Insert("Image" , Image);
Properties.Insert("Active" , True);
Properties.Insert("Website" , "https://vector.ru");

View File

@ -5,12 +5,7 @@
Archive = False;
Properties = New Map;
Properties.Insert("Active" , False);
Properties.Insert("Active", False);
Properties.Insert("Email" , "vector@mail.ru");
Result = OPI_Notion.EditPageProperties(Token
, Page
, Properties
, Icon
, Cover
, Archive);
Result = OPI_Notion.EditPageProperties(Token, Page, Properties, Icon, Cover, Archive);

View File

@ -17,5 +17,5 @@
CategoryAttribute2 = New Structure("value", "Protective film set for X3 NFC. Dark cotton");
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 5076 , 0, CategoryAttribute1);
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 9048 , 0, CategoryAttribute2);
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 5076, 0, CategoryAttribute1);
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 9048, 0, CategoryAttribute2);

View File

@ -33,9 +33,10 @@
// Attributes individualized for different categories
CategoryAttribute1 = New Structure("dictionary_value_id,value", 971082156, "Speaker stand");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050 , "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576 , "gray");
CategoryAttribute4 = New Structure("dictionary_value_id,value", 95911 , "Protective film set for X3 NFC. Dark cotton");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050, "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576, "gray");
CategoryAttribute4 = New Structure("dictionary_value_id,value", 95911,
"Protective film set for X3 NFC. Dark cotton");
CategoryAttribute5 = New Structure("value", "Protective film set for X3 NFC. Dark cotton");

View File

@ -6,7 +6,7 @@
IDArray.Add("1432106010");
Filter = New Structure;
Filter.Insert("visibility" , "ALL");
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductList(ClientID, APIKey, Filter);

View File

@ -5,7 +5,7 @@
IDArray.Add("143210608");
Filter = New Structure;
Filter.Insert("visibility" , "ALL");
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductsStocks(ClientID, APIKey, Filter);

View File

@ -5,9 +5,5 @@
AttributeID = 85;
Value = "Sunshine";
Result = OPI_Ozon.SearchAttributeValue(ClientID
, APIKey
, CategoryID
, TypeID
, AttributeID
, Value);
Result = OPI_Ozon.SearchAttributeValue(ClientID, APIKey, CategoryID, TypeID, AttributeID,
Value);

View File

@ -11,9 +11,4 @@
ImagesArray.Add(Image1);
ImagesArray.Add(Image2);
Result = OPI_Ozon.UpdateProductImages(ClientID
, APIKey
, ProductID
, ImagesArray
,
, MarketingColor);
Result = OPI_Ozon.UpdateProductImages(ClientID, APIKey, ProductID, ImagesArray, , MarketingColor);

View File

@ -4,8 +4,8 @@
AttributesStructure = New Structure("offer_id", "143210609");
CategoryAttribute1 = New Structure("dictionary_value_id,value", 971082156, "Speaker stand");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050 , "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576 , "red");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050, "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576, "red");
OPI_Ozon.CompleteComplexAttribute(AttributesStructure, 5076 , 0, CategoryAttribute1);
OPI_Ozon.CompleteComplexAttribute(AttributesStructure, 85 , 0, CategoryAttribute2);

View File

@ -41,7 +41,7 @@
RecordStructure.Insert("jsonb_field" , New Structure("JSONB" , CasualStructure));
RecordStructure.Insert("date_field" , New Structure("DATE" , CurrentDate));
RecordStructure.Insert("time_field" , New Structure("TIME" , CurrentDate));
RecordStructure.Insert("uuid_field" , New Structure("UUID" , New UUID()));
RecordStructure.Insert("uuid_field" , New Structure("UUID" , New UUID));
RecordsArray.Add(RecordStructure);

View File

@ -32,12 +32,8 @@
Break;
EndIf;
Result = OPI_S3.UploadObjectPart(Name
, Bucket
, BasicData
, UploadID
, PartNumber
, CurrentData);
Result = OPI_S3.UploadObjectPart(Name, Bucket, BasicData, UploadID, PartNumber,
CurrentData);
BytesRead = SourceStream.CurrentPosition();

View File

@ -33,12 +33,8 @@
Break;
EndIf;
Result = OPI_S3.UploadObjectPart(Name
, Bucket
, BasicData
, UploadID
, PartNumber
, CurrentData);
Result = OPI_S3.UploadObjectPart(Name, Bucket, BasicData, UploadID, PartNumber,
CurrentData);
BytesRead = SourceStream.CurrentPosition();

View File

@ -32,12 +32,8 @@
Break;
EndIf;
Result = OPI_S3.UploadObjectPart(Name
, Bucket
, BasicData
, UploadID
, PartNumber
, CurrentData);
Result = OPI_S3.UploadObjectPart(Name, Bucket, BasicData, UploadID, PartNumber,
CurrentData);
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -18,10 +18,10 @@
RowStructure2.Insert("data" , Image); // BLOB
RowStrucutre1 = New Structure;
RowStrucutre1.Insert("name" , "Lesha") ; // TEXT
RowStrucutre1.Insert("name" , "Lesha"); // TEXT
RowStrucutre1.Insert("age" , 20); // INTEGER
RowStrucutre1.Insert("salary" , 200.20) ; // REAL
RowStrucutre1.Insert("is_active" , False) ; // BOOL
RowStrucutre1.Insert("salary" , 200.20); // REAL
RowStrucutre1.Insert("is_active" , False); // BOOL
RowStrucutre1.Insert("created_at", OPI_Tools.GetCurrentDate()); // DATETIME
RowStrucutre1.Insert("data" , New Structure("blob", PictureFile)); // BLOB

View File

@ -5,6 +5,6 @@
LastName = "Петров";
Phone = "88005553535";
Result = OPI_Telegram.SendContact(Token, ChatID , Name, LastName, Phone);
Result = OPI_Telegram.SendContact(Token, ChatID, Name, LastName, Phone);
Result = OPI_Telegram.SendContact(Token, ChannelID, Name, LastName, Phone);

View File

@ -9,6 +9,6 @@
AnswersArray.Add("Green");
AnswersArray.Add("Blue");
Result = OPI_Telegram.SendPoll(Token, ChatID , Question, AnswersArray, False);
Result = OPI_Telegram.SendPoll(Token, ChatID, Question, AnswersArray, False);
Result = OPI_Telegram.SendPoll(Token, ChannelID, Question, AnswersArray, True);

View File

@ -4,7 +4,7 @@
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary Data or Path to file
ImageArray = New Array();
ImageArray = New Array;
ImageArray.Add(Image1);
ImageArray.Add(Image2);

View File

@ -3,7 +3,7 @@
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary Data or Path to file
ImageArray = New Array();
ImageArray = New Array;
ImageArray.Add(Image1);
ImageArray.Add(Image2);

View File

@ -8,7 +8,7 @@
ImageArray.Add(Image1);
ImageArray.Add(Image2);
ProductDescription = New Map();
ProductDescription = New Map;
ProductDescription.Insert("Name" , "TestProduct");
ProductDescription.Insert("Description" , "Product description");
ProductDescription.Insert("Category" , "20173");
@ -16,13 +16,13 @@
ProductDescription.Insert("OldPrice" , 15);
ProductDescription.Insert("MainPhoto" , Image1);
ProductDescription.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
ProductDescription.Insert("AdditionalPhotos" , ImageArray);
ProductDescription.Insert("AdditionalPhotos", ImageArray);
ProductDescription.Insert("MainInGroup" , True);
ProductDescription.Insert("Width" , 20);
ProductDescription.Insert("Height" , 30);
ProductDescription.Insert("Depth" , 40);
ProductDescription.Insert("Weight" , 100);
ProductDescription.Insert("SKU" , "12345");
ProductDescription.Insert("AvailableBalance" , "10");
ProductDescription.Insert("AvailableBalance", "10");
Result = OPI_VK.AddProduct(ProductDescription, Selection, Parameters);

View File

@ -6,9 +6,5 @@
PostID = "7134";
AccountID = "1607951446";
Result = OPI_VK.CreateAd(CampaignNumber
, DailyLimit
, CategoryNumber
, PostID
, AccountID
, Parameters);
Result = OPI_VK.CreateAd(CampaignNumber, DailyLimit, CategoryNumber, PostID, AccountID,
Parameters);

View File

@ -14,4 +14,4 @@
Result = OPI_VK.CreatePost(Text, ImageArray, True, URL, Parameters);
Result = OPI_VK.CreatePost(Text, Image, False , , Parameters);
Result = OPI_VK.CreatePost(Text, Image, False, , Parameters);

View File

@ -5,8 +5,4 @@
Main = True;
Hidden = False;
Result = OPI_VK.CreateProductCollection(Name
, Image
, Main
, Hidden
, Parameters);
Result = OPI_VK.CreateProductCollection(Name, Image, Main, Hidden, Parameters);

View File

@ -9,7 +9,7 @@
ImageArray.Add(Image1);
ImageArray.Add(Image2);
Product = New Map();
Product = New Map;
Product.Insert("Name" , "Test product (with prop)");
Product.Insert("Description" , "Product description");
Product.Insert("Category" , "20173");
@ -17,7 +17,7 @@
Product.Insert("OldPrice" , 15);
Product.Insert("MainPhoto" , Image1);
Product.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
Product.Insert("AdditionalPhotos" , ImageArray);
Product.Insert("AdditionalPhotos", ImageArray);
Product.Insert("MainInGroup" , True);
Product.Insert("GroupNumber" , Undefined);
Product.Insert("Width" , 20);
@ -25,7 +25,7 @@
Product.Insert("Depth" , 40);
Product.Insert("Weight" , 100);
Product.Insert("SKU" , 12345);
Product.Insert("AvailableBalance" , "10");
Product.Insert("AvailableBalance", "10");
Product.Insert("PropertyValues" , PropVariant1);
Result = OPI_VK.AddProduct(Product, , Parameters);

View File

@ -6,6 +6,6 @@
CopyFile(Image, TFN);
Image = New BinaryData(TFN);
Result = OPI_VK.CreateStory(Image , URL, Parameters);
Result = OPI_VK.CreateStory(Image, URL, Parameters);
Result = OPI_VK.CreateStory(TFN, , Parameters);

View File

@ -4,7 +4,4 @@
Option = "4716";
Value = "New variant name";
Result = OPI_VK.EditProductPropertyVariant(Value
, Property
, Option
, Parameters);
Result = OPI_VK.EditProductPropertyVariant(Value, Property, Option, Parameters);

View File

@ -1,2 +1,2 @@
 Parameters = GetVKParameters();
Result = OPI_VK.GetProductList(, Parameters);
Result = OPI_VK.GetProductList( , Parameters);

View File

@ -2,7 +2,7 @@
ChatID = "689203963@chat.agent";
ReplyID = "7472643225547712554";
File = "https://api.athenaeum.digital/test_data/song.m4a" ; // URL
File = "https://api.athenaeum.digital/test_data/song.m4a"; // URL
FilePath = GetTempFileName("m4a"); // Path
CopyFile(File, FilePath);

View File

@ -10,8 +10,8 @@
FlagsStructure.Insert("use_in_benchmarks" , False);
FlagsStructure.Insert("direct_allow_use_goals_without_access", False);
CounterStructure.Insert("counter_flags" , FlagsStructure);
CounterStructure.Insert("counter_flags", FlagsStructure);
CounterStructure.Insert("favorite" , 0);
CounterStructure.Insert("filter_robots" , 1);
CounterStructure.Insert("filter_robots", 1);
Result = OPI_YandexMetrika.UpdateCounter(Token, CounterID, CounterStructure);

View File

@ -64,8 +64,8 @@ Method at API documentation: [calendar.event.add](https://apidocs.bitrix24.ru/ap
DaysArray.Add("SA");
DaysArray.Add("MO");
RepeatabilityStructure.Insert("BYDAY" , DaysArray);
RepeatabilityStructure.Insert("UNTIL" , XMLString(Tomorrow + Hour * 24 * 10));
RepeatabilityStructure.Insert("BYDAY", DaysArray);
RepeatabilityStructure.Insert("UNTIL", XMLString(Tomorrow + Hour * 24 * 10));
EventStucture.Insert("rrule" , RepeatabilityStructure);
EventStucture.Insert("is_meeting", "Y");

View File

@ -59,8 +59,8 @@ Method at API documentation: [im.chat.add](https://dev.1c-bitrix.ru/learning/cou
ChatStructure = New Structure;
ChatStructure.Insert("TYPE" , "CHAT");
ChatStructure.Insert("TITLE" , "Private chat");
ChatStructure.Insert("USERS" , MembersArray);
ChatStructure.Insert("TITLE", "Private chat");
ChatStructure.Insert("USERS", MembersArray);
Result = OPI_Bitrix24.CreateChat(URL, ChatStructure, Token);
```

View File

@ -34,8 +34,8 @@ Method at API documentation: [crm.deal.update](https://dev.1c-bitrix.ru/rest_hel
```bsl title="1C:Enterprise/OneScript code example"
FieldsStructure = New Structure;
FieldsStructure.Insert("TITLE" , "Sale in RUB");
FieldsStructure.Insert("CURRENCY_ID" , "RUB");
FieldsStructure.Insert("OPPORTUNITY" , 50000);
FieldsStructure.Insert("CURRENCY_ID", "RUB");
FieldsStructure.Insert("OPPORTUNITY", 50000);
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
DealID = "2910";

View File

@ -49,12 +49,8 @@ Method at API documentation: [department.update](https://dev.1c-bitrix.ru/rest_h
ParentID = 1;
HeadID = 10;
Result = OPI_Bitrix24.UpdateDepartment(URL
, DepartmentID
, Name
, ParentID
, HeadID
, Token);
Result = OPI_Bitrix24.UpdateDepartment(URL, DepartmentID, Name, ParentID, HeadID,
Token);
```

View File

@ -52,7 +52,7 @@ Method at API documentation: [crm.lead.add](https://dev.1c-bitrix.ru/rest_help/c
Result = OPI_Bitrix24.CreateLead(URL, FieldsStructure);
FieldsStructure.Insert("NAME" , "Ivan");
FieldsStructure.Insert("LAST_NAME" , "Ivanov");
FieldsStructure.Insert("LAST_NAME", "Ivanov");
URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

View File

@ -43,7 +43,7 @@ Method at API documentation: [crm.lead.update](https://dev.1c-bitrix.ru/rest_hel
Result = OPI_Bitrix24.UpdateLead(URL, LeadID, FieldsStructure);
FieldsStructure.Insert("NAME" , "Evgeniy");
FieldsStructure.Insert("LAST_NAME" , "Evgeniev");
FieldsStructure.Insert("LAST_NAME", "Evgeniev");
URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

View File

@ -49,7 +49,7 @@ Method at API documentation: [im.message.update](https://dev.1c-bitrix.ru/learni
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.EditMessage(URL, MessageID, Text, Attachments, Token);
```

View File

@ -41,7 +41,7 @@ Method at API documentation: [im.message.add](https://dev.1c-bitrix.ru/learning/
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.SendMessage(URL, ChatID, Text, Attachments);

View File

@ -43,7 +43,7 @@ Method at API documentation: [im.notify.personal.add](https://dev.1c-bitrix.ru/l
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, , Attachments);

View File

@ -43,7 +43,7 @@ Method at API documentation: [im.notify.system.add](https://dev.1c-bitrix.ru/lea
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, , Attachments);

View File

@ -37,7 +37,7 @@ Method at API documentation: [tasks.task.list](https://dev.1c-bitrix.ru/rest_hel
// Full filter structure you can find at GetTasksFilterStructure method
Filter = New Map;
Filter.Insert("CREATED_BY" , 1); // Producer with ID 1
Filter.Insert("CREATED_BY", 1); // Producer with ID 1
Filter.Insert("!RESPONSIBLE_ID", 10); // Performers with ID not equal to 10
Filter.Insert(">=CREATED_DATE ", CurrentDate - 60 * 60 * 24); // Creation date >= yesterday

View File

@ -50,13 +50,8 @@ Method at API documentation: [task.elapseditem.add](https://dev.1c-bitrix.ru/res
Time = 7200;
SetupDate = AddMonth(OPI_Tools.GetCurrentDate(), -1);
Result = OPI_Bitrix24.AddTaskTimeAccounting(URL
, TaskID
, Time
, UserID
, Text
, SetupDate
, Token);
Result = OPI_Bitrix24.AddTaskTimeAccounting(URL, TaskID, Time, UserID, Text, SetupDate,
Token);
```

View File

@ -52,13 +52,7 @@ Method at API documentation: [task.elapseditem.update](https://dev.1c-bitrix.ru/
Time = 4800;
SetupDate = AddMonth(OPI_Tools.GetCurrentDate(), -1);
Result = OPI_Bitrix24.UpdateTaskTimeAccounting(URL
, TaskID
, RecordID
, Time
, Text
, SetupDate
, Token);
Result = OPI_Bitrix24.UpdateTaskTimeAccounting(URL, TaskID, RecordID, Time, Text, SetupDate, Token);
```

View File

@ -53,7 +53,7 @@ Method at API documentation: [user.update](https://dev.1c-bitrix.ru/rest_help/us
UserStructure.Insert("EMAIL" , Email);
UserStructure.Insert("NAME" , "Oleg");
UserStructure.Insert("LAST_NAME" , "Lama");
UserStructure.Insert("UF_DEPARTMENT" , 7);
UserStructure.Insert("UF_DEPARTMENT", 7);
Result = OPI_Bitrix24.UpdateUser(URL, UserID, UserStructure, Token);
```

View File

@ -35,11 +35,7 @@ import TabItem from '@theme/TabItem';
SecondaryColor = "#ffd800";
Hidden = False;
Result = OPI_GoogleCalendar.EditListCalendar(Token
, Calendar
, PrimaryColor
, SecondaryColor
, Hidden);
Result = OPI_GoogleCalendar.EditListCalendar(Token, Calendar, PrimaryColor, SecondaryColor, Hidden);
```

View File

@ -47,7 +47,7 @@ import TabItem from '@theme/TabItem';
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
EventDescription.Insert("ArrayOfAttachmentURLs" , Attachments);
EventDescription.Insert("ArrayOfAttachmentURLs", Attachments);
EventDescription.Insert("SendNotifications" , True);
Result = OPI_GoogleCalendar.CreateEvent(Token, Calendar, EventDescription);

View File

@ -24,7 +24,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/api/account/AddGroupParticipant/)
Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/api/groups/AddGroupParticipant/)
:::
<br/>
@ -36,7 +36,7 @@ Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/ap
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);

View File

@ -24,7 +24,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Method at API documentation: [CreateGroup](https://green-api.com/docs/api/account/CreateGroup/)
Method at API documentation: [CreateGroup](https://green-api.com/docs/api/groups/CreateGroup/)
:::
<br/>

View File

@ -24,7 +24,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs/api/account/RemoveGroupParticipant/)
Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs/api/groups/RemoveGroupParticipant/)
:::
<br/>
@ -36,7 +36,7 @@ Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);

View File

@ -23,7 +23,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Method at API documentation: [GetGroupData](https://green-api.com/docs/api/account/GetGroupData/)
Method at API documentation: [GetGroupData](https://green-api.com/docs/api/groups/GetGroupData/)
:::
<br/>
@ -35,7 +35,7 @@ Method at API documentation: [GetGroupData](https://green-api.com/docs/api/accou
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);

View File

@ -1,5 +1,5 @@
---
sidebar_position: 6
sidebar_position: 8
---
import Tabs from '@theme/Tabs';
@ -23,7 +23,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/account/LeaveGroup/)
Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/groups/LeaveGroup/)
:::
<br/>
@ -35,7 +35,7 @@ Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/account
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);

View File

@ -0,0 +1,49 @@
---
sidebar_position: 7
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Revoke admin rights
Revokes administrator rights from the user
`Function RevokeAdminRights(Val AccessParameters, Val GroupID, Val UserID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| AccessParameters | --access | Structure Of KeyAndValue | &#x2714; | Access parameters. See FormAccessParameters |
| GroupID | --group | String | &#x2714; | Group chat identifier |
| UserID | --user | String | &#x2714; | User ID to add |
Returns: Map Of KeyAndValue - serialized JSON response from Green API
<br/>
:::tip
Method at API documentation: [RemoveAdmin](https://green-api.com/docs/api/groups/RemoveAdmin/)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.RevokeAdminRights(AccessParameters, GroupID, UserID);
```

View File

@ -0,0 +1,49 @@
---
sidebar_position: 6
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Set admin rights
Assigns the user as the group administrator
`Function SetAdminRights(Val AccessParameters, Val GroupID, Val UserID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| AccessParameters | --access | Structure Of KeyAndValue | &#x2714; | Access parameters. See FormAccessParameters |
| GroupID | --group | String | &#x2714; | Group chat identifier |
| UserID | --user | String | &#x2714; | User ID to add |
Returns: Map Of KeyAndValue - serialized JSON response from Green API
<br/>
:::tip
Method at API documentation: [SetGroupAdmin](https://green-api.com/docs/api/groups/SetGroupAdmin/)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363410798027942@g.us";
UserID = "123123123@c.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.SetAdminRights(AccessParameters, GroupID, UserID);
```

View File

@ -0,0 +1,51 @@
---
sidebar_position: 9
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Set group picture
Sets the group chat picture
`Function SetGroupPicture(Val AccessParameters, Val GroupID, Val Image) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| AccessParameters | --access | Structure Of KeyAndValue | &#x2714; | Access parameters. See FormAccessParameters |
| GroupID | --group | String | &#x2714; | Group chat identifier |
| Image | --picture | BinaryData, String | &#x2714; | Profile picture |
Returns: Map Of KeyAndValue - serialized JSON response from Green API
<br/>
:::tip
Method at API documentation: [SetGroupPicture](https://green-api.com/docs/api/groups/SetGroupPicture/)
Parameters with Binary data type can also accept file paths on disk and URLs
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
ApiUrl = "https://7105.api.greenapi.com";
MediaUrl = "https://7105.media.greenapi.com";
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
Image = "https://api.athenaeum.digital/test_data/picture.jpg";
GroupID = "120363410798027942@g.us";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
```

View File

@ -24,7 +24,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/account/UpdateGroupName/)
Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/groups/UpdateGroupName/)
:::
<br/>
@ -36,7 +36,7 @@ Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/ac
IdInstance = "71051...";
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
GroupID = "120363392913015964@g.us";
GroupID = "120363410798027942@g.us";
Name = "New name";
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);

View File

@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
Properties.Insert("Description" , "rich_text");
Properties.Insert("Number" , "number");
Properties.Insert("Status" , "status");
Properties.Insert("CreationDate" , "date");
Properties.Insert("CreationDate", "date");
Properties.Insert("Image" , "files");
Properties.Insert("Active" , "checkbox");
Properties.Insert("Website" , "url");
@ -47,7 +47,7 @@ import TabItem from '@theme/TabItem';
ValueSelection = New Map;
ValueSelection.Insert("New" , "green");
ValueSelection.Insert("InProgress" , "yellow");
ValueSelection.Insert("InProgress", "yellow");
ValueSelection.Insert("Remote" , "red");
Properties.Insert("Status", ValueSelection);

View File

@ -39,7 +39,7 @@ import TabItem from '@theme/TabItem';
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
Properties.Insert("CreationDate" , OPI_Tools.GetCurrentDate());
Properties.Insert("CreationDate", OPI_Tools.GetCurrentDate());
Properties.Insert("Image" , Image);
Properties.Insert("Active" , True);
Properties.Insert("Website" , "https://vector.ru");

View File

@ -37,15 +37,10 @@ import TabItem from '@theme/TabItem';
Archive = False;
Properties = New Map;
Properties.Insert("Active" , False);
Properties.Insert("Active", False);
Properties.Insert("Email" , "vector@mail.ru");
Result = OPI_Notion.EditPageProperties(Token
, Page
, Properties
, Icon
, Cover
, Archive);
Result = OPI_Notion.EditPageProperties(Token, Page, Properties, Icon, Cover, Archive);
```

View File

@ -43,12 +43,8 @@ Method at API documentation: [post /v1/description-category/attribute/values/sea
AttributeID = 85;
Value = "Sunshine";
Result = OPI_Ozon.SearchAttributeValue(ClientID
, APIKey
, CategoryID
, TypeID
, AttributeID
, Value);
Result = OPI_Ozon.SearchAttributeValue(ClientID, APIKey, CategoryID, TypeID, AttributeID,
Value);
```

View File

@ -39,7 +39,7 @@ Method at API documentation: [post /v4/product/info/stocks](https://docs.ozon.ru
IDArray.Add("143210608");
Filter = New Structure;
Filter.Insert("visibility" , "ALL");
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductsStocks(ClientID, APIKey, Filter);

View File

@ -51,8 +51,8 @@ In 1C the method can be used as a procedure, without getting a return value. Ret
CategoryAttribute2 = New Structure("value", "Protective film set for X3 NFC. Dark cotton");
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 5076 , 0, CategoryAttribute1);
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 9048 , 0, CategoryAttribute2);
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 5076, 0, CategoryAttribute1);
OPI_Ozon.CompleteComplexAttribute(ItemStructure, 9048, 0, CategoryAttribute2);
```

View File

@ -70,9 +70,10 @@ Method at API documentation: [post /v3/product/import](https://docs.ozon.ru/api/
// Attributes individualized for different categories
CategoryAttribute1 = New Structure("dictionary_value_id,value", 971082156, "Speaker stand");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050 , "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576 , "gray");
CategoryAttribute4 = New Structure("dictionary_value_id,value", 95911 , "Protective film set for X3 NFC. Dark cotton");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050, "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576, "gray");
CategoryAttribute4 = New Structure("dictionary_value_id,value", 95911,
"Protective film set for X3 NFC. Dark cotton");
CategoryAttribute5 = New Structure("value", "Protective film set for X3 NFC. Dark cotton");

View File

@ -40,7 +40,7 @@ Method at API documentation: [post /v3/product/list](https://docs.ozon.ru/api/se
IDArray.Add("1432106010");
Filter = New Structure;
Filter.Insert("visibility" , "ALL");
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductList(ClientID, APIKey, Filter);

View File

@ -53,12 +53,7 @@ Method at API documentation: [post /v1/product/pictures/import](https://docs.ozo
ImagesArray.Add(Image1);
ImagesArray.Add(Image2);
Result = OPI_Ozon.UpdateProductImages(ClientID
, APIKey
, ProductID
, ImagesArray
,
, MarketingColor);
Result = OPI_Ozon.UpdateProductImages(ClientID, APIKey, ProductID, ImagesArray, , MarketingColor);
```

View File

@ -39,8 +39,8 @@ Method at API documentation: [post /v1/product/attributes/update](https://docs.o
AttributesStructure = New Structure("offer_id", "143210609");
CategoryAttribute1 = New Structure("dictionary_value_id,value", 971082156, "Speaker stand");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050 , "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576 , "red");
CategoryAttribute2 = New Structure("dictionary_value_id,value", 5060050, "Samsung");
CategoryAttribute3 = New Structure("dictionary_value_id,value", 61576, "red");
OPI_Ozon.CompleteComplexAttribute(AttributesStructure, 5076 , 0, CategoryAttribute1);
OPI_Ozon.CompleteComplexAttribute(AttributesStructure, 85 , 0, CategoryAttribute2);

View File

@ -77,7 +77,7 @@ The list of available types is described on the initial page of the PostgreSQL l
RecordStructure.Insert("jsonb_field" , New Structure("JSONB" , CasualStructure));
RecordStructure.Insert("date_field" , New Structure("DATE" , CurrentDate));
RecordStructure.Insert("time_field" , New Structure("TIME" , CurrentDate));
RecordStructure.Insert("uuid_field" , New Structure("UUID" , New UUID()));
RecordStructure.Insert("uuid_field" , New Structure("UUID" , New UUID));
RecordsArray.Add(RecordStructure);

View File

@ -70,12 +70,8 @@ This is a service method. A `PutObject` method is intended for the common scenar
Break;
EndIf;
Result = OPI_S3.UploadObjectPart(Name
, Bucket
, BasicData
, UploadID
, PartNumber
, CurrentData);
Result = OPI_S3.UploadObjectPart(Name, Bucket, BasicData, UploadID, PartNumber,
CurrentData);
BytesRead = SourceStream.CurrentPosition();

View File

@ -69,12 +69,8 @@ This is a service method. A `PutObject` method is intended for the common scenar
Break;
EndIf;
Result = OPI_S3.UploadObjectPart(Name
, Bucket
, BasicData
, UploadID
, PartNumber
, CurrentData);
Result = OPI_S3.UploadObjectPart(Name, Bucket, BasicData, UploadID, PartNumber,
CurrentData);
BytesRead = SourceStream.CurrentPosition();

View File

@ -72,12 +72,8 @@ Parameters with Binary data type can also accept file paths on disk and URLs
Break;
EndIf;
Result = OPI_S3.UploadObjectPart(Name
, Bucket
, BasicData
, UploadID
, PartNumber
, CurrentData);
Result = OPI_S3.UploadObjectPart(Name, Bucket, BasicData, UploadID, PartNumber,
CurrentData);
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -52,10 +52,10 @@ Binary data can also be transferred as a structure `{'blob':File path}`
RowStructure2.Insert("data" , Image); // BLOB
RowStrucutre1 = New Structure;
RowStrucutre1.Insert("name" , "Lesha") ; // TEXT
RowStrucutre1.Insert("name" , "Lesha"); // TEXT
RowStrucutre1.Insert("age" , 20); // INTEGER
RowStrucutre1.Insert("salary" , 200.20) ; // REAL
RowStrucutre1.Insert("is_active" , False) ; // BOOL
RowStrucutre1.Insert("salary" , 200.20); // REAL
RowStrucutre1.Insert("is_active" , False); // BOOL
RowStrucutre1.Insert("created_at", OPI_Tools.GetCurrentDate()); // DATETIME
RowStrucutre1.Insert("data" , New Structure("blob", PictureFile)); // BLOB

View File

@ -41,7 +41,7 @@ Method at API documentation: [sendContact](https://core.telegram.org/bots/api#se
LastName = "Петров";
Phone = "88005553535";
Result = OPI_Telegram.SendContact(Token, ChatID , Name, LastName, Phone);
Result = OPI_Telegram.SendContact(Token, ChatID, Name, LastName, Phone);
Result = OPI_Telegram.SendContact(Token, ChannelID, Name, LastName, Phone);
```

View File

@ -44,7 +44,7 @@ Method at API documentation: [sendPoll](https://core.telegram.org/bots/api#sendp
AnswersArray.Add("Green");
AnswersArray.Add("Blue");
Result = OPI_Telegram.SendPoll(Token, ChatID , Question, AnswersArray, False);
Result = OPI_Telegram.SendPoll(Token, ChatID, Question, AnswersArray, False);
Result = OPI_Telegram.SendPoll(Token, ChannelID, Question, AnswersArray, True);
```

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