mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-25 21:39:21 +02:00
960 B
960 B
sidebar_position |
---|
9 |
Get file block
Make file block for SendMessage method
Function GetFileBlock(Val Name, Val URL) Export
Parameter | CLI option | Type | Description |
---|---|---|---|
Name | --title | String | Picture name |
URL | --url | String | File URL |
Returns: Structure - FileBlock
:::tip
Blocks at API documentation: Link
:::
Name = "Image";
URL = "https://openyellow.neocities.org/test_data/document.docx";
Result = OPI_Bitrix24.GetFileBlock(Name, URL);
oint bitrix24 GetFileBlock --title %title% --url %url%
{
"FILE": {
"NAME": "Image",
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/document.docx"
}
}