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:
parent
3fd76acb25
commit
4b4394db7f
12
ci/clitesten
vendored
12
ci/clitesten
vendored
@ -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
12
ci/clitestru
vendored
@ -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 '
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
7
docs/en/data/GreenAPI/RevokeAdminRights.json
vendored
Normal file
7
docs/en/data/GreenAPI/RevokeAdminRights.json
vendored
Normal 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"
|
||||
}
|
7
docs/en/data/GreenAPI/SetAdminRights.json
vendored
Normal file
7
docs/en/data/GreenAPI/SetAdminRights.json
vendored
Normal 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"
|
||||
}
|
8
docs/en/data/GreenAPI/SetGroupPicture.json
vendored
Normal file
8
docs/en/data/GreenAPI/SetGroupPicture.json
vendored
Normal 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"
|
||||
}
|
@ -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);
|
||||
|
@ -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");
|
||||
|
4
docs/en/examples/Bitrix24/CreateChat.txt
vendored
4
docs/en/examples/Bitrix24/CreateChat.txt
vendored
@ -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);
|
||||
|
2
docs/en/examples/Bitrix24/CreateLead.txt
vendored
2
docs/en/examples/Bitrix24/CreateLead.txt
vendored
@ -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...";
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
2
docs/en/examples/Bitrix24/EditMessage.txt
vendored
2
docs/en/examples/Bitrix24/EditMessage.txt
vendored
@ -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);
|
||||
|
2
docs/en/examples/Bitrix24/GetTasksList.txt
vendored
2
docs/en/examples/Bitrix24/GetTasksList.txt
vendored
@ -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
|
||||
|
||||
|
2
docs/en/examples/Bitrix24/SendMessage.txt
vendored
2
docs/en/examples/Bitrix24/SendMessage.txt
vendored
@ -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);
|
||||
|
||||
|
4
docs/en/examples/Bitrix24/UpdateDeal.txt
vendored
4
docs/en/examples/Bitrix24/UpdateDeal.txt
vendored
@ -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";
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/Bitrix24/UpdateLead.txt
vendored
2
docs/en/examples/Bitrix24/UpdateLead.txt
vendored
@ -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...";
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/Bitrix24/UpdateUser.txt
vendored
2
docs/en/examples/Bitrix24/UpdateUser.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/GreenAPI/AddGroupMember.txt
vendored
2
docs/en/examples/GreenAPI/AddGroupMember.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/GreenAPI/LeaveGroup.txt
vendored
2
docs/en/examples/GreenAPI/LeaveGroup.txt
vendored
@ -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);
|
||||
|
10
docs/en/examples/GreenAPI/RevokeAdminRights.txt
vendored
Normal file
10
docs/en/examples/GreenAPI/RevokeAdminRights.txt
vendored
Normal 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);
|
10
docs/en/examples/GreenAPI/SetAdminRights.txt
vendored
Normal file
10
docs/en/examples/GreenAPI/SetAdminRights.txt
vendored
Normal 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);
|
10
docs/en/examples/GreenAPI/SetGroupPicture.txt
vendored
Normal file
10
docs/en/examples/GreenAPI/SetGroupPicture.txt
vendored
Normal 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);
|
@ -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);
|
||||
|
4
docs/en/examples/Notion/CreateDatabase.txt
vendored
4
docs/en/examples/Notion/CreateDatabase.txt
vendored
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
||||
|
2
docs/en/examples/Ozon/GetProductList.txt
vendored
2
docs/en/examples/Ozon/GetProductList.txt
vendored
@ -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);
|
||||
|
2
docs/en/examples/Ozon/GetProductsStocks.txt
vendored
2
docs/en/examples/Ozon/GetProductsStocks.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/PostgreSQL/AddRecords.txt
vendored
2
docs/en/examples/PostgreSQL/AddRecords.txt
vendored
@ -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);
|
||||
|
||||
|
8
docs/en/examples/S3/FinishPartsUpload.txt
vendored
8
docs/en/examples/S3/FinishPartsUpload.txt
vendored
@ -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();
|
||||
|
||||
|
8
docs/en/examples/S3/InitPartsUpload.txt
vendored
8
docs/en/examples/S3/InitPartsUpload.txt
vendored
@ -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();
|
||||
|
||||
|
8
docs/en/examples/S3/UploadObjectPart.txt
vendored
8
docs/en/examples/S3/UploadObjectPart.txt
vendored
@ -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);
|
||||
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
6
docs/en/examples/SQLite/AddRecords.txt
vendored
6
docs/en/examples/SQLite/AddRecords.txt
vendored
@ -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
|
||||
|
||||
|
2
docs/en/examples/Telegram/SendContact.txt
vendored
2
docs/en/examples/Telegram/SendContact.txt
vendored
@ -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);
|
||||
|
2
docs/en/examples/Telegram/SendPoll.txt
vendored
2
docs/en/examples/Telegram/SendPoll.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
6
docs/en/examples/VK/AddProduct.txt
vendored
6
docs/en/examples/VK/AddProduct.txt
vendored
@ -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);
|
||||
|
8
docs/en/examples/VK/CreateAd.txt
vendored
8
docs/en/examples/VK/CreateAd.txt
vendored
@ -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);
|
||||
|
2
docs/en/examples/VK/CreatePost.txt
vendored
2
docs/en/examples/VK/CreatePost.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/VK/CreateStory.txt
vendored
2
docs/en/examples/VK/CreateStory.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
2
docs/en/examples/VK/GetProductList.txt
vendored
2
docs/en/examples/VK/GetProductList.txt
vendored
@ -1,2 +1,2 @@
|
||||
Parameters = GetVKParameters();
|
||||
Result = OPI_VK.GetProductList(, Parameters);
|
||||
Result = OPI_VK.GetProductList( , Parameters);
|
||||
|
2
docs/en/examples/VKTeams/SendVoice.txt
vendored
2
docs/en/examples/VKTeams/SendVoice.txt
vendored
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
```
|
||||
|
@ -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";
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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...";
|
||||
|
@ -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...";
|
||||
|
@ -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);
|
||||
```
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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);
|
||||
```
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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/>
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
49
docs/en/md/Green_API/Group-management/Revoke-admin-rights.mdx
vendored
Normal file
49
docs/en/md/Green_API/Group-management/Revoke-admin-rights.mdx
vendored
Normal 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 | ✔ | Access parameters. See FormAccessParameters |
|
||||
| GroupID | --group | String | ✔ | Group chat identifier |
|
||||
| UserID | --user | String | ✔ | 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
49
docs/en/md/Green_API/Group-management/Set-admin-rights.mdx
vendored
Normal file
49
docs/en/md/Green_API/Group-management/Set-admin-rights.mdx
vendored
Normal 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 | ✔ | Access parameters. See FormAccessParameters |
|
||||
| GroupID | --group | String | ✔ | Group chat identifier |
|
||||
| UserID | --user | String | ✔ | 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
51
docs/en/md/Green_API/Group-management/Set-group-picture.mdx
vendored
Normal file
51
docs/en/md/Green_API/Group-management/Set-group-picture.mdx
vendored
Normal 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 | ✔ | Access parameters. See FormAccessParameters |
|
||||
| GroupID | --group | String | ✔ | Group chat identifier |
|
||||
| Image | --picture | BinaryData, String | ✔ | 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
2
docs/en/md/PostgreSQL/Orm/Add-records.mdx
vendored
2
docs/en/md/PostgreSQL/Orm/Add-records.mdx
vendored
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
6
docs/en/md/SQLite/Orm/Add-records.mdx
vendored
6
docs/en/md/SQLite/Orm/Add-records.mdx
vendored
@ -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
|
||||
|
||||
|
@ -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);
|
||||
```
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user