1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +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

@ -8,9 +8,9 @@
CalendarsStructure.Insert("color" , "#FFFFFF");
CalendarsStructure.Insert("text_color" , "#000000");
ExportStructure = New Structure;
ExportStructure.Insert("ALLOW", "True");
ExportStructure.Insert("SET" , "all");
ExportStructure = New Structure;
ExportStructure.Insert("ALLOW", "True");
ExportStructure.Insert("SET" , "all");
CalendarsStructure.Insert("export", ExportStructure);

View File

@ -22,39 +22,39 @@
EventStucture.Insert("importance" , "normal");
EventStucture.Insert("private_event", "Y");
RepeatabilityStructure = New Structure;
RepeatabilityStructure.Insert("FREQ" , "DAILY");
RepeatabilityStructure.Insert("COUNT" , 3);
RepeatabilityStructure.Insert("INTERVAL", 10);
RepeatabilityStructure = New Structure;
RepeatabilityStructure.Insert("FREQ" , "DAILY");
RepeatabilityStructure.Insert("COUNT" , 3);
RepeatabilityStructure.Insert("INTERVAL", 10);
DaysArray = New Array;
DaysArray.Add("SA");
DaysArray.Add("MO");
DaysArray = New Array;
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");
EventStucture.Insert("location" , "Office");
RemindersArray = New Array;
RemindersArray = New Array;
ReminderStructure = New Structure;
ReminderStructure.Insert("type" , "day");
ReminderStructure.Insert("count", 1);
ReminderStructure = New Structure;
ReminderStructure.Insert("type" , "day");
ReminderStructure.Insert("count", 1);
RemindersArray.Add(ReminderStructure);
RemindersArray.Add(ReminderStructure);
EventStucture.Insert("remind" , RemindersArray);
EventStucture.Insert("attendees", StrSplit("1,10", ","));
EventStucture.Insert("host" , 1);
MeetingStructure = New Structure;
MeetingStructure.Insert("notify" , "Y");
MeetingStructure.Insert("reinvite" , "Y");
MeetingStructure.Insert("allow_invite", "N");
MeetingStructure.Insert("hide_guests" , "N");
MeetingStructure = New Structure;
MeetingStructure.Insert("notify" , "Y");
MeetingStructure.Insert("reinvite" , "Y");
MeetingStructure.Insert("allow_invite", "N");
MeetingStructure.Insert("hide_guests" , "N");
EventStucture.Insert("meeting", MeetingStructure);

View File

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

View File

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

View File

@ -6,8 +6,8 @@
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, , Attachments);

View File

@ -6,8 +6,8 @@
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreateSystemNotification(URL, UserID, Text, , Attachments);

View File

@ -13,7 +13,7 @@
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
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

@ -5,8 +5,8 @@
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
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("TITLE" , "Sale in RUB");
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

@ -8,8 +8,8 @@
Result = OPI_Bitrix24.UpdateLead(URL, LeadID, FieldsStructure);
FieldsStructure.Insert("NAME" , "Evgeniy");
FieldsStructure.Insert("LAST_NAME" , "Evgeniev");
FieldsStructure.Insert("NAME" , "Evgeniy");
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

@ -16,9 +16,9 @@
Email = String(New UUID) + "@exepmple.org";
UserStructure = New Structure;
UserStructure.Insert("EMAIL" , Email);
UserStructure.Insert("NAME" , "Oleg");
UserStructure.Insert("LAST_NAME" , "Lama");
UserStructure.Insert("UF_DEPARTMENT" , 7);
UserStructure.Insert("EMAIL" , Email);
UserStructure.Insert("NAME" , "Oleg");
UserStructure.Insert("LAST_NAME" , "Lama");
UserStructure.Insert("UF_DEPARTMENT", 7);
Result = OPI_Bitrix24.UpdateUser(URL, UserID, UserStructure, Token);

View File

@ -13,30 +13,30 @@
InvitationDescription.Insert("comment" , "Comment to courier");
InvitationDescription.Insert("need_call" , False);
Sender = New Structure;
Sender.Insert("company", "Company");
Sender.Insert("name" , "Ivaniv Ivan");
Sender = New Structure;
Sender.Insert("company", "Company");
Sender.Insert("name" , "Ivaniv Ivan");
Phones = New Array;
Phone = New Structure("number", "+79589441654");
Phones.Add(Phone);
Phones = New Array;
Phone = New Structure("number", "+79589441654");
Phones.Add(Phone);
Sender.Insert("phones", Phones);
Sender.Insert("phones", Phones);
InvitationDescription.Insert("sender", Sender);
ShippingPoint = New Structure;
ShippingPoint.Insert("code" , "44");
ShippingPoint.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
ShippingPoint.Insert("postal_code" , "109004");
ShippingPoint.Insert("longitude" , 37.6204);
ShippingPoint.Insert("latitude" , 55.754);
ShippingPoint.Insert("country_code", "RU");
ShippingPoint.Insert("region" , "Moscow");
ShippingPoint.Insert("sub_region" , "Moscow");
ShippingPoint.Insert("city" , "Moscow");
ShippingPoint.Insert("kladr_code" , "7700000000000");
ShippingPoint.Insert("address" , "st. Bluchera, 32");
ShippingPoint = New Structure;
ShippingPoint.Insert("code" , "44");
ShippingPoint.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
ShippingPoint.Insert("postal_code" , "109004");
ShippingPoint.Insert("longitude" , 37.6204);
ShippingPoint.Insert("latitude" , 55.754);
ShippingPoint.Insert("country_code", "RU");
ShippingPoint.Insert("region" , "Moscow");
ShippingPoint.Insert("sub_region" , "Moscow");
ShippingPoint.Insert("city" , "Moscow");
ShippingPoint.Insert("kladr_code" , "7700000000000");
ShippingPoint.Insert("address" , "st. Bluchera, 32");
InvitationDescription.Insert("from_location", ShippingPoint);

View File

@ -2,64 +2,64 @@
OrderDescription = New Structure;
SendLocation = New Structure;
SendLocation.Insert("code" , "44");
SendLocation.Insert("city" , "Moscow");
SendLocation.Insert("address", "Ave. Leningradsky, 4");
SendLocation = New Structure;
SendLocation.Insert("code" , "44");
SendLocation.Insert("city" , "Moscow");
SendLocation.Insert("address", "Ave. Leningradsky, 4");
DestLocation = New Structure;
DestLocation.Insert("code" , "270");
DestLocation.Insert("city" , "Novosibirsk");
DestLocation.Insert("address", "st. Bluchera, 32");
DestLocation = New Structure;
DestLocation.Insert("code" , "270");
DestLocation.Insert("city" , "Novosibirsk");
DestLocation.Insert("address", "st. Bluchera, 32");
Recipient = New Structure;
Recipient = New Structure;
Phones = New Array;
Phones.Add(New Structure("number", "+79134637228"));
Phones = New Array;
Phones.Add(New Structure("number", "+79134637228"));
Recipient.Insert("phones", Phones);
Recipient.Insert("name" , "Ivaniv Ivan");
Recipient.Insert("phones", Phones);
Recipient.Insert("name" , "Ivaniv Ivan");
Sender = New Structure("name", "Petrov Petr");
Sender = New Structure("name", "Petrov Petr");
Services = New Array;
Services = New Array;
Service = New Structure;
Service.Insert("code" , "SECURE_PACKAGE_A2");
Service.Insert("parameter", 10);
Service = New Structure;
Service.Insert("code" , "SECURE_PACKAGE_A2");
Service.Insert("parameter", 10);
Services.Add(Service);
Services.Add(Service);
Packages = New Array;
Packages = New Array;
Package = New Structure;
Package = New Structure;
Items = New Array;
Items = New Array;
Item = New Structure;
Item = New Structure;
Payment = New Structure;
Payment.Insert("value", 3000);
Payment = New Structure;
Payment.Insert("value", 3000);
Item.Insert("payment" , Payment);
Item.Insert("ware_key", "00055");
Item.Insert("name" , "Product");
Item.Insert("cost" , 300);
Item.Insert("amount" , 2);
Item.Insert("weight" , 700);
Item.Insert("url" , "www.item.ru");
Item.Insert("payment" , Payment);
Item.Insert("ware_key", "00055");
Item.Insert("name" , "Product");
Item.Insert("cost" , 300);
Item.Insert("amount" , 2);
Item.Insert("weight" , 700);
Item.Insert("url" , "www.item.ru");
Items.Add(Item);
Items.Add(Item);
Package.Insert("items" , Items);
Package.Insert("number" , "bar-001");
Package.Insert("comment", "Packaging");
Package.Insert("height" , 10);
Package.Insert("length" , 10);
Package.Insert("weight" , "4000");
Package.Insert("width" , 10);
Package.Insert("items" , Items);
Package.Insert("number" , "bar-001");
Package.Insert("comment", "Packaging");
Package.Insert("height" , 10);
Package.Insert("length" , 10);
Package.Insert("weight" , "4000");
Package.Insert("width" , 10);
Packages.Add(Package);
Packages.Add(Package);
OrderDescription.Insert("from_location", SendLocation);
OrderDescription.Insert("to_location" , DestLocation);

View File

@ -18,18 +18,18 @@
Appointment.Insert("time_to" , "17:00");
Appointment.Insert("comment" , "Group office");
DeliveryLocation = New Structure;
DeliveryLocation.Insert("code" , "270");
DeliveryLocation.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
DeliveryLocation.Insert("postal_code" , "109004");
DeliveryLocation.Insert("longitude" , 37.6204);
DeliveryLocation.Insert("latitude" , 55.754);
DeliveryLocation.Insert("country_code", "RU");
DeliveryLocation.Insert("region" , "Novosibirsk");
DeliveryLocation.Insert("sub_region" , "Novosibirsk");
DeliveryLocation.Insert("city" , "Novosibirsk");
DeliveryLocation.Insert("kladr_code" , "7700000000000");
DeliveryLocation.Insert("address" , "st. Bluchera, 33");
DeliveryLocation = New Structure;
DeliveryLocation.Insert("code" , "270");
DeliveryLocation.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
DeliveryLocation.Insert("postal_code" , "109004");
DeliveryLocation.Insert("longitude" , 37.6204);
DeliveryLocation.Insert("latitude" , 55.754);
DeliveryLocation.Insert("country_code", "RU");
DeliveryLocation.Insert("region" , "Novosibirsk");
DeliveryLocation.Insert("sub_region" , "Novosibirsk");
DeliveryLocation.Insert("city" , "Novosibirsk");
DeliveryLocation.Insert("kladr_code" , "7700000000000");
DeliveryLocation.Insert("address" , "st. Bluchera, 33");
Appointment.Insert("to_location", DeliveryLocation);

View File

@ -13,12 +13,12 @@
Attachments.Insert("Image2", Image2);
EventDescription = New Map;
EventDescription.Insert("Description" , Description);
EventDescription.Insert("Title" , Name);
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
EventDescription.Insert("ArrayOfAttachmentURLs" , Attachments);
EventDescription.Insert("SendNotifications" , True);
EventDescription.Insert("Description" , Description);
EventDescription.Insert("Title" , Name);
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
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

@ -3,22 +3,22 @@
Title = "TestTitle";
Properties = New Map;
Properties.Insert("Name" , "title");
Properties.Insert("Description" , "rich_text");
Properties.Insert("Number" , "number");
Properties.Insert("Status" , "status");
Properties.Insert("CreationDate" , "date");
Properties.Insert("Image" , "files");
Properties.Insert("Active" , "checkbox");
Properties.Insert("Website" , "url");
Properties.Insert("Email" , "email");
Properties.Insert("Phone" , "phone_number");
Properties.Insert("User" , "people");
Properties.Insert("Name" , "title");
Properties.Insert("Description" , "rich_text");
Properties.Insert("Number" , "number");
Properties.Insert("Status" , "status");
Properties.Insert("CreationDate", "date");
Properties.Insert("Image" , "files");
Properties.Insert("Active" , "checkbox");
Properties.Insert("Website" , "url");
Properties.Insert("Email" , "email");
Properties.Insert("Phone" , "phone_number");
Properties.Insert("User" , "people");
ValueSelection = New Map;
ValueSelection.Insert("New" , "green");
ValueSelection.Insert("InProgress" , "yellow");
ValueSelection.Insert("Remote" , "red");
ValueSelection.Insert("New" , "green");
ValueSelection.Insert("InProgress", "yellow");
ValueSelection.Insert("Remote" , "red");
Properties.Insert("Status", ValueSelection);

View File

@ -6,16 +6,16 @@
Image.Insert("Logo", Image_);
Properties = New Map;
Properties.Insert("Name" , "LLC Vector");
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
Properties.Insert("CreationDate" , OPI_Tools.GetCurrentDate());
Properties.Insert("Image" , Image);
Properties.Insert("Active" , True);
Properties.Insert("Website" , "https://vector.ru");
Properties.Insert("Email" , "mail@vector.ru");
Properties.Insert("Phone" , "88005553535");
Properties.Insert("Status" , "New");
Properties.Insert("Name" , "LLC Vector");
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
Properties.Insert("CreationDate", OPI_Tools.GetCurrentDate());
Properties.Insert("Image" , Image);
Properties.Insert("Active" , True);
Properties.Insert("Website" , "https://vector.ru");
Properties.Insert("Email" , "mail@vector.ru");
Properties.Insert("Phone" , "88005553535");
Properties.Insert("Status" , "New");
Result = OPI_Notion.CreatePageInDatabase(Token, Base, Properties);

View File

@ -5,12 +5,7 @@
Archive = False;
Properties = New Map;
Properties.Insert("Active" , False);
Properties.Insert("Email" , "vector@mail.ru");
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("offer_id" , IDArray);
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("offer_id" , IDArray);
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

@ -12,23 +12,23 @@
// CREATE
QueryText = "
|CREATE TABLE test_table (
|id SERIAL PRIMARY KEY,
|name NAME,
|age INT,
|salary REAL,
|is_active BOOL,
|created_at DATE,
|data BYTEA
|);";
|CREATE TABLE test_table (
|id SERIAL PRIMARY KEY,
|name NAME,
|age INT,
|salary REAL,
|is_active BOOL,
|created_at DATE,
|data BYTEA
|);";
Result = OPI_PostgreSQL.ExecuteSQLQuery(QueryText, , , Connection);
// INSERT with parameters
QueryText = "
|INSERT INTO test_table (name, age, salary, is_active, created_at, data)
|VALUES ($1, $2, $3, $4, $5, $6);";
|INSERT INTO test_table (name, age, salary, is_active, created_at, data)
|VALUES ($1, $2, $3, $4, $5, $6);";
ParameterArray = New Array;
ParameterArray.Add(New Structure("NAME" , "Vitaly"));
@ -49,17 +49,17 @@
// DO + Transaction
QueryText = "DO $$
|BEGIN
| CREATE TABLE users (
| id SMALLSERIAL,
| name TEXT NOT NULL,
| age INT NOT NULL
| );
| INSERT INTO users (name, age) VALUES ('Alice', 30);
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;
|END $$ LANGUAGE plpgsql;";
|BEGIN
| CREATE TABLE users (
| id SMALLSERIAL,
| name TEXT NOT NULL,
| age INT NOT NULL
| );
| INSERT INTO users (name, age) VALUES ('Alice', 30);
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;
|END $$ LANGUAGE plpgsql;";
Result = OPI_PostgreSQL.ExecuteSQLQuery(QueryText, , , Connection);

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

@ -6,11 +6,11 @@
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Name = "opi-newbucket2";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig);

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

@ -8,23 +8,23 @@
// CREATE
QueryText = "
|CREATE TABLE test_table (
|id INTEGER PRIMARY KEY,
|name TEXT,
|age INTEGER,
|salary REAL,
|is_active BOOLEAN,
|created_at DATETIME,
|data BLOB
|);";
|CREATE TABLE test_table (
|id INTEGER PRIMARY KEY,
|name TEXT,
|age INTEGER,
|salary REAL,
|is_active BOOLEAN,
|created_at DATETIME,
|data BLOB
|);";
Result = OPI_SQLite.ExecuteSQLQuery(QueryText, , , Connection);
// INSERT with parameters
QueryText = "
|INSERT INTO test_table (name, age, salary, is_active, created_at, data)
|VALUES (?1, ?2, ?3, ?4, ?5, ?6);";
|INSERT INTO test_table (name, age, salary, is_active, created_at, data)
|VALUES (?1, ?2, ?3, ?4, ?5, ?6);";
ParameterArray = New Array;
ParameterArray.Add("Vitaly"); // TEXT
@ -45,15 +45,15 @@
// Transaction
QueryText = "BEGIN TRANSACTION;
| CREATE TABLE IF NOT EXISTS users (
| id INTEGER PRIMARY KEY AUTOINCREMENT,
| name TEXT NOT NULL,
| age INTEGER NOT NULL
| );
| INSERT INTO users (name, age) VALUES ('Alice', 30);
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;";
| CREATE TABLE IF NOT EXISTS users (
| id INTEGER PRIMARY KEY AUTOINCREMENT,
| name TEXT NOT NULL,
| age INTEGER NOT NULL
| );
| INSERT INTO users (name, age) VALUES ('Alice', 30);
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;";
Result = OPI_SQLite.ExecuteSQLQuery(QueryText, , , Connection);

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,21 +8,21 @@
ImageArray.Add(Image1);
ImageArray.Add(Image2);
ProductDescription = New Map();
ProductDescription.Insert("Name" , "TestProduct");
ProductDescription.Insert("Description" , "Product description");
ProductDescription.Insert("Category" , "20173");
ProductDescription.Insert("Price" , 1);
ProductDescription.Insert("OldPrice" , 15);
ProductDescription.Insert("MainPhoto" , Image1);
ProductDescription.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
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 = New Map;
ProductDescription.Insert("Name" , "TestProduct");
ProductDescription.Insert("Description" , "Product description");
ProductDescription.Insert("Category" , "20173");
ProductDescription.Insert("Price" , 1);
ProductDescription.Insert("OldPrice" , 15);
ProductDescription.Insert("MainPhoto" , Image1);
ProductDescription.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
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");
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,24 +9,24 @@
ImageArray.Add(Image1);
ImageArray.Add(Image2);
Product = New Map();
Product.Insert("Name" , "Test product (with prop)");
Product.Insert("Description" , "Product description");
Product.Insert("Category" , "20173");
Product.Insert("Price" , 1);
Product.Insert("OldPrice" , 15);
Product.Insert("MainPhoto" , Image1);
Product.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
Product.Insert("AdditionalPhotos" , ImageArray);
Product.Insert("MainInGroup" , True);
Product.Insert("GroupNumber" , Undefined);
Product.Insert("Width" , 20);
Product.Insert("Height" , 30);
Product.Insert("Depth" , 40);
Product.Insert("Weight" , 100);
Product.Insert("SKU" , 12345);
Product.Insert("AvailableBalance" , "10");
Product.Insert("PropertyValues" , PropVariant1);
Product = New Map;
Product.Insert("Name" , "Test product (with prop)");
Product.Insert("Description" , "Product description");
Product.Insert("Category" , "20173");
Product.Insert("Price" , 1);
Product.Insert("OldPrice" , 15);
Product.Insert("MainPhoto" , Image1);
Product.Insert("URL" , "https://github.com/Bayselonarrend/OpenIntegrations");
Product.Insert("AdditionalPhotos", ImageArray);
Product.Insert("MainInGroup" , True);
Product.Insert("GroupNumber" , Undefined);
Product.Insert("Width" , 20);
Product.Insert("Height" , 30);
Product.Insert("Depth" , 40);
Product.Insert("Weight" , 100);
Product.Insert("SKU" , 12345);
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

@ -3,43 +3,43 @@
CounterStructure = New Structure;
CounterStructure.Insert("autogoals_enabled", True);
CodeSettingsStructure = New Structure;
CodeSettingsStructure.Insert("async" , 0);
CodeSettingsStructure.Insert("clickmap" , 1);
CodeSettingsStructure.Insert("ecommerce" , 1);
CodeSettingsStructure.Insert("in_one_line" , 0);
CodeSettingsStructure.Insert("track_hash" , 1);
CodeSettingsStructure.Insert("visor" , 1);
CodeSettingsStructure.Insert("xml_site" , 0);
CodeSettingsStructure.Insert("ytm" , 0);
CodeSettingsStructure.Insert("alternative_cdn", 1);
CodeSettingsStructure = New Structure;
CodeSettingsStructure.Insert("async" , 0);
CodeSettingsStructure.Insert("clickmap" , 1);
CodeSettingsStructure.Insert("ecommerce" , 1);
CodeSettingsStructure.Insert("in_one_line" , 0);
CodeSettingsStructure.Insert("track_hash" , 1);
CodeSettingsStructure.Insert("visor" , 1);
CodeSettingsStructure.Insert("xml_site" , 0);
CodeSettingsStructure.Insert("ytm" , 0);
CodeSettingsStructure.Insert("alternative_cdn", 1);
InformerStructure = New Structure;
InformerStructure.Insert("color_arrow", 1);
InformerStructure.Insert("color_end" , "EFEFEFFE");
InformerStructure.Insert("color_start", "EEEEEEEE");
InformerStructure.Insert("color_text" , 0);
InformerStructure.Insert("enabled" , 1);
InformerStructure.Insert("indicator" , "uniques");
InformerStructure.Insert("size" , 2);
InformerStructure.Insert("type" , "ext");
InformerStructure = New Structure;
InformerStructure.Insert("color_arrow", 1);
InformerStructure.Insert("color_end" , "EFEFEFFE");
InformerStructure.Insert("color_start", "EEEEEEEE");
InformerStructure.Insert("color_text" , 0);
InformerStructure.Insert("enabled" , 1);
InformerStructure.Insert("indicator" , "uniques");
InformerStructure.Insert("size" , 2);
InformerStructure.Insert("type" , "ext");
CodeSettingsStructure.Insert("informer", InformerStructure);
CodeSettingsStructure.Insert("informer", InformerStructure);
CounterStructure.Insert("code_options", CodeSettingsStructure);
FlagsStructure = New Structure;
FlagsStructure.Insert("collect_first_party_data" , True);
FlagsStructure.Insert("measurement_enabled" , True);
FlagsStructure.Insert("use_in_benchmarks" , True);
FlagsStructure.Insert("direct_allow_use_goals_without_access", True);
FlagsStructure = New Structure;
FlagsStructure.Insert("collect_first_party_data" , True);
FlagsStructure.Insert("measurement_enabled" , True);
FlagsStructure.Insert("use_in_benchmarks" , True);
FlagsStructure.Insert("direct_allow_use_goals_without_access", True);
CounterStructure.Insert("counter_flags" , FlagsStructure);
CounterStructure.Insert("favorite" , 1);
CounterStructure.Insert("filter_robots" , 2);
CounterStructure.Insert("gdpr_agreement_accepted", 1);
DomainStructure = New Structure("site", "openintegrations.dev");
DomainStructure = New Structure("site", "openintegrations.dev");
CounterStructure.Insert("site2", DomainStructure);

View File

@ -4,14 +4,14 @@
CounterStructure = New Structure;
CounterStructure.Insert("autogoals_enabled", True);
FlagsStructure = New Structure;
FlagsStructure.Insert("collect_first_party_data" , False);
FlagsStructure.Insert("measurement_enabled" , False);
FlagsStructure.Insert("use_in_benchmarks" , False);
FlagsStructure.Insert("direct_allow_use_goals_without_access", False);
FlagsStructure = New Structure;
FlagsStructure.Insert("collect_first_party_data" , False);
FlagsStructure.Insert("measurement_enabled" , False);
FlagsStructure.Insert("use_in_benchmarks" , False);
FlagsStructure.Insert("direct_allow_use_goals_without_access", False);
CounterStructure.Insert("counter_flags" , FlagsStructure);
CounterStructure.Insert("favorite" , 0);
CounterStructure.Insert("filter_robots" , 1);
CounterStructure.Insert("counter_flags", FlagsStructure);
CounterStructure.Insert("favorite" , 0);
CounterStructure.Insert("filter_robots", 1);
Result = OPI_YandexMetrika.UpdateCounter(Token, CounterID, CounterStructure);

View File

@ -55,39 +55,39 @@ Method at API documentation: [calendar.event.add](https://apidocs.bitrix24.ru/ap
EventStucture.Insert("importance" , "normal");
EventStucture.Insert("private_event", "Y");
RepeatabilityStructure = New Structure;
RepeatabilityStructure.Insert("FREQ" , "DAILY");
RepeatabilityStructure.Insert("COUNT" , 3);
RepeatabilityStructure.Insert("INTERVAL", 10);
RepeatabilityStructure = New Structure;
RepeatabilityStructure.Insert("FREQ" , "DAILY");
RepeatabilityStructure.Insert("COUNT" , 3);
RepeatabilityStructure.Insert("INTERVAL", 10);
DaysArray = New Array;
DaysArray.Add("SA");
DaysArray.Add("MO");
DaysArray = New Array;
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");
EventStucture.Insert("location" , "Office");
RemindersArray = New Array;
RemindersArray = New Array;
ReminderStructure = New Structure;
ReminderStructure.Insert("type" , "day");
ReminderStructure.Insert("count", 1);
ReminderStructure = New Structure;
ReminderStructure.Insert("type" , "day");
ReminderStructure.Insert("count", 1);
RemindersArray.Add(ReminderStructure);
RemindersArray.Add(ReminderStructure);
EventStucture.Insert("remind" , RemindersArray);
EventStucture.Insert("attendees", StrSplit("1,10", ","));
EventStucture.Insert("host" , 1);
MeetingStructure = New Structure;
MeetingStructure.Insert("notify" , "Y");
MeetingStructure.Insert("reinvite" , "Y");
MeetingStructure.Insert("allow_invite", "N");
MeetingStructure.Insert("hide_guests" , "N");
MeetingStructure = New Structure;
MeetingStructure.Insert("notify" , "Y");
MeetingStructure.Insert("reinvite" , "Y");
MeetingStructure.Insert("allow_invite", "N");
MeetingStructure.Insert("hide_guests" , "N");
EventStucture.Insert("meeting", MeetingStructure);

View File

@ -41,9 +41,9 @@ Method at API documentation: [calendar.section.add](https://apidocs.bitrix24.ru/
CalendarsStructure.Insert("color" , "#FFFFFF");
CalendarsStructure.Insert("text_color" , "#000000");
ExportStructure = New Structure;
ExportStructure.Insert("ALLOW", "True");
ExportStructure.Insert("SET" , "all");
ExportStructure = New Structure;
ExportStructure.Insert("ALLOW", "True");
ExportStructure.Insert("SET" , "all");
CalendarsStructure.Insert("export", ExportStructure);

View File

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

View File

@ -33,9 +33,9 @@ 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("TITLE" , "Sale in RUB");
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

@ -51,8 +51,8 @@ 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("NAME" , "Ivan");
FieldsStructure.Insert("LAST_NAME", "Ivanov");
URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

View File

@ -42,8 +42,8 @@ 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("NAME" , "Evgeniy");
FieldsStructure.Insert("LAST_NAME", "Evgeniev");
URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

View File

@ -48,8 +48,8 @@ Method at API documentation: [im.message.update](https://dev.1c-bitrix.ru/learni
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.EditMessage(URL, MessageID, Text, Attachments, Token);
```

View File

@ -40,8 +40,8 @@ Method at API documentation: [im.message.add](https://dev.1c-bitrix.ru/learning/
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.SendMessage(URL, ChatID, Text, Attachments);

View File

@ -42,8 +42,8 @@ Method at API documentation: [im.notify.personal.add](https://dev.1c-bitrix.ru/l
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx", File));
Result = OPI_Bitrix24.CreatePersonalNotification(URL, UserID, Text, , Attachments);

View File

@ -42,8 +42,8 @@ Method at API documentation: [im.notify.system.add](https://dev.1c-bitrix.ru/lea
File = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx";
Attachments = New Array;
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
Attachments.Add(OPI_Bitrix24.GetFileBlock("File1.docx" , File));
Attachments.Add(OPI_Bitrix24.GetPictureBlock("Image1" , Image));
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

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

View File

@ -46,30 +46,30 @@ Method at API documentation: [Registration of refusal](https://api-docs.cdek.ru/
InvitationDescription.Insert("comment" , "Comment to courier");
InvitationDescription.Insert("need_call" , False);
Sender = New Structure;
Sender.Insert("company", "Company");
Sender.Insert("name" , "Ivaniv Ivan");
Sender = New Structure;
Sender.Insert("company", "Company");
Sender.Insert("name" , "Ivaniv Ivan");
Phones = New Array;
Phone = New Structure("number", "+79589441654");
Phones.Add(Phone);
Phones = New Array;
Phone = New Structure("number", "+79589441654");
Phones.Add(Phone);
Sender.Insert("phones", Phones);
Sender.Insert("phones", Phones);
InvitationDescription.Insert("sender", Sender);
ShippingPoint = New Structure;
ShippingPoint.Insert("code" , "44");
ShippingPoint.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
ShippingPoint.Insert("postal_code" , "109004");
ShippingPoint.Insert("longitude" , 37.6204);
ShippingPoint.Insert("latitude" , 55.754);
ShippingPoint.Insert("country_code", "RU");
ShippingPoint.Insert("region" , "Moscow");
ShippingPoint.Insert("sub_region" , "Moscow");
ShippingPoint.Insert("city" , "Moscow");
ShippingPoint.Insert("kladr_code" , "7700000000000");
ShippingPoint.Insert("address" , "st. Bluchera, 32");
ShippingPoint = New Structure;
ShippingPoint.Insert("code" , "44");
ShippingPoint.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
ShippingPoint.Insert("postal_code" , "109004");
ShippingPoint.Insert("longitude" , 37.6204);
ShippingPoint.Insert("latitude" , 55.754);
ShippingPoint.Insert("country_code", "RU");
ShippingPoint.Insert("region" , "Moscow");
ShippingPoint.Insert("sub_region" , "Moscow");
ShippingPoint.Insert("city" , "Moscow");
ShippingPoint.Insert("kladr_code" , "7700000000000");
ShippingPoint.Insert("address" , "st. Bluchera, 32");
InvitationDescription.Insert("from_location", ShippingPoint);

View File

@ -51,18 +51,18 @@ Method at API documentation: [Registration of delivery appointment](https://api-
Appointment.Insert("time_to" , "17:00");
Appointment.Insert("comment" , "Group office");
DeliveryLocation = New Structure;
DeliveryLocation.Insert("code" , "270");
DeliveryLocation.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
DeliveryLocation.Insert("postal_code" , "109004");
DeliveryLocation.Insert("longitude" , 37.6204);
DeliveryLocation.Insert("latitude" , 55.754);
DeliveryLocation.Insert("country_code", "RU");
DeliveryLocation.Insert("region" , "Novosibirsk");
DeliveryLocation.Insert("sub_region" , "Novosibirsk");
DeliveryLocation.Insert("city" , "Novosibirsk");
DeliveryLocation.Insert("kladr_code" , "7700000000000");
DeliveryLocation.Insert("address" , "st. Bluchera, 33");
DeliveryLocation = New Structure;
DeliveryLocation.Insert("code" , "270");
DeliveryLocation.Insert("fias_guid" , "0c5b2444-70a0-4932-980c-b4dc0d3f02b5");
DeliveryLocation.Insert("postal_code" , "109004");
DeliveryLocation.Insert("longitude" , 37.6204);
DeliveryLocation.Insert("latitude" , 55.754);
DeliveryLocation.Insert("country_code", "RU");
DeliveryLocation.Insert("region" , "Novosibirsk");
DeliveryLocation.Insert("sub_region" , "Novosibirsk");
DeliveryLocation.Insert("city" , "Novosibirsk");
DeliveryLocation.Insert("kladr_code" , "7700000000000");
DeliveryLocation.Insert("address" , "st. Bluchera, 33");
Appointment.Insert("to_location", DeliveryLocation);

View File

@ -36,64 +36,64 @@ Method at API documentation: [Order registration](https://api-docs.cdek.ru/33828
OrderDescription = New Structure;
SendLocation = New Structure;
SendLocation.Insert("code" , "44");
SendLocation.Insert("city" , "Moscow");
SendLocation.Insert("address", "Ave. Leningradsky, 4");
SendLocation = New Structure;
SendLocation.Insert("code" , "44");
SendLocation.Insert("city" , "Moscow");
SendLocation.Insert("address", "Ave. Leningradsky, 4");
DestLocation = New Structure;
DestLocation.Insert("code" , "270");
DestLocation.Insert("city" , "Novosibirsk");
DestLocation.Insert("address", "st. Bluchera, 32");
DestLocation = New Structure;
DestLocation.Insert("code" , "270");
DestLocation.Insert("city" , "Novosibirsk");
DestLocation.Insert("address", "st. Bluchera, 32");
Recipient = New Structure;
Recipient = New Structure;
Phones = New Array;
Phones.Add(New Structure("number", "+79134637228"));
Phones = New Array;
Phones.Add(New Structure("number", "+79134637228"));
Recipient.Insert("phones", Phones);
Recipient.Insert("name" , "Ivaniv Ivan");
Recipient.Insert("phones", Phones);
Recipient.Insert("name" , "Ivaniv Ivan");
Sender = New Structure("name", "Petrov Petr");
Sender = New Structure("name", "Petrov Petr");
Services = New Array;
Services = New Array;
Service = New Structure;
Service.Insert("code" , "SECURE_PACKAGE_A2");
Service.Insert("parameter", 10);
Service = New Structure;
Service.Insert("code" , "SECURE_PACKAGE_A2");
Service.Insert("parameter", 10);
Services.Add(Service);
Services.Add(Service);
Packages = New Array;
Packages = New Array;
Package = New Structure;
Package = New Structure;
Items = New Array;
Items = New Array;
Item = New Structure;
Item = New Structure;
Payment = New Structure;
Payment.Insert("value", 3000);
Payment = New Structure;
Payment.Insert("value", 3000);
Item.Insert("payment" , Payment);
Item.Insert("ware_key", "00055");
Item.Insert("name" , "Product");
Item.Insert("cost" , 300);
Item.Insert("amount" , 2);
Item.Insert("weight" , 700);
Item.Insert("url" , "www.item.ru");
Item.Insert("payment" , Payment);
Item.Insert("ware_key", "00055");
Item.Insert("name" , "Product");
Item.Insert("cost" , 300);
Item.Insert("amount" , 2);
Item.Insert("weight" , 700);
Item.Insert("url" , "www.item.ru");
Items.Add(Item);
Items.Add(Item);
Package.Insert("items" , Items);
Package.Insert("number" , "bar-001");
Package.Insert("comment", "Packaging");
Package.Insert("height" , 10);
Package.Insert("length" , 10);
Package.Insert("weight" , "4000");
Package.Insert("width" , 10);
Package.Insert("items" , Items);
Package.Insert("number" , "bar-001");
Package.Insert("comment", "Packaging");
Package.Insert("height" , 10);
Package.Insert("length" , 10);
Package.Insert("weight" , "4000");
Package.Insert("width" , 10);
Packages.Add(Package);
Packages.Add(Package);
OrderDescription.Insert("from_location", SendLocation);
OrderDescription.Insert("to_location" , DestLocation);

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

@ -42,13 +42,13 @@ import TabItem from '@theme/TabItem';
Attachments.Insert("Image2", Image2);
EventDescription = New Map;
EventDescription.Insert("Description" , Description);
EventDescription.Insert("Title" , Name);
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
EventDescription.Insert("ArrayOfAttachmentURLs" , Attachments);
EventDescription.Insert("SendNotifications" , True);
EventDescription.Insert("Description" , Description);
EventDescription.Insert("Title" , Name);
EventDescription.Insert("Venue" , "InOffice");
EventDescription.Insert("StartDate" , CurrentDate);
EventDescription.Insert("EndDate" , EventDescription["StartDate"] + Hour);
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

@ -33,22 +33,22 @@ import TabItem from '@theme/TabItem';
Title = "TestTitle";
Properties = New Map;
Properties.Insert("Name" , "title");
Properties.Insert("Description" , "rich_text");
Properties.Insert("Number" , "number");
Properties.Insert("Status" , "status");
Properties.Insert("CreationDate" , "date");
Properties.Insert("Image" , "files");
Properties.Insert("Active" , "checkbox");
Properties.Insert("Website" , "url");
Properties.Insert("Email" , "email");
Properties.Insert("Phone" , "phone_number");
Properties.Insert("User" , "people");
Properties.Insert("Name" , "title");
Properties.Insert("Description" , "rich_text");
Properties.Insert("Number" , "number");
Properties.Insert("Status" , "status");
Properties.Insert("CreationDate", "date");
Properties.Insert("Image" , "files");
Properties.Insert("Active" , "checkbox");
Properties.Insert("Website" , "url");
Properties.Insert("Email" , "email");
Properties.Insert("Phone" , "phone_number");
Properties.Insert("User" , "people");
ValueSelection = New Map;
ValueSelection.Insert("New" , "green");
ValueSelection.Insert("InProgress" , "yellow");
ValueSelection.Insert("Remote" , "red");
ValueSelection.Insert("New" , "green");
ValueSelection.Insert("InProgress", "yellow");
ValueSelection.Insert("Remote" , "red");
Properties.Insert("Status", ValueSelection);

View File

@ -35,17 +35,17 @@ import TabItem from '@theme/TabItem';
Image.Insert("Logo", Image_);
Properties = New Map;
Properties.Insert("Name" , "LLC Vector");
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
Properties.Insert("CreationDate" , OPI_Tools.GetCurrentDate());
Properties.Insert("Image" , Image);
Properties.Insert("Active" , True);
Properties.Insert("Website" , "https://vector.ru");
Properties.Insert("Email" , "mail@vector.ru");
Properties.Insert("Phone" , "88005553535");
Properties.Insert("Status" , "New");
Properties.Insert("Name" , "LLC Vector");
Properties.Insert("Description" , "OurFirstClient");
Properties.Insert("Number" , 1);
Properties.Insert("Status" , "Regular");
Properties.Insert("CreationDate", OPI_Tools.GetCurrentDate());
Properties.Insert("Image" , Image);
Properties.Insert("Active" , True);
Properties.Insert("Website" , "https://vector.ru");
Properties.Insert("Email" , "mail@vector.ru");
Properties.Insert("Phone" , "88005553535");
Properties.Insert("Status" , "New");
Result = OPI_Notion.CreatePageInDatabase(Token, Base, Properties);
```

View File

@ -37,15 +37,10 @@ import TabItem from '@theme/TabItem';
Archive = False;
Properties = New Map;
Properties.Insert("Active" , False);
Properties.Insert("Email" , "vector@mail.ru");
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,8 +39,8 @@ 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("offer_id" , IDArray);
Filter.Insert("visibility", "ALL");
Filter.Insert("offer_id" , IDArray);
Result = OPI_Ozon.GetProductsStocks(ClientID, APIKey, Filter);
```

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