Get picture block
Make picture block for SendMessage method
- Parameters
- Advanced call ?
Function GetPictureBlock(Val Name, Val URL) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Name | --title | String | ✔ | Picture name |
| URL | --url | String | ✔ | URL of sending picture |
Returns
Structure - PictureBlock
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Blocks at API documentation: Link
1C:Enterprise/OneScript code example
Name = "Image";
URL = "https://hut.openintegrations.dev/test_data/picture.jpg";
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
- Bash
- CMD/Bat
oint bitrix24 GetPictureBlock \
--title "Image" \
--url "https://hut.openintegrations.dev/test_data/picture.jpg"
oint bitrix24 GetPictureBlock ^
--title "Image" ^
--url "https://hut.openintegrations.dev/test_data/picture.jpg"
Result
{
"IMAGE": {
"NAME": "Image",
"LINK": "https://hut.openintegrations.dev/test_data/picture.jpg"
}
}