1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-19 22:33:07 +02:00

46 lines
878 B
Markdown
Raw Normal View History

---
sidebar_position: 8
---
# Get picture block
Make picture block for SendMessage method
`Function GetPictureBlock(Val Name, Val URL) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Name | --title | String | Picture name |
| URL | --url | String | URL of sending picture |
Returns: Structure - PictureBlock
<br/>
:::tip
Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&CHAPTER_ID=07867)
:::
<br/>
```bsl title="Code example"
2024-10-03 20:35:39 +03:00
Name = "Image";
2024-10-15 10:07:27 +03:00
URL = "https://api.athenaeum.digital/test_data/picture.jpg";
2024-10-03 20:35:39 +03:00
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-10-04 13:35:56 +03:00
{
"IMAGE": {
"NAME": "Image",
"LINK": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
}
}
```