1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/Message-management/Get-picture-block.mdx

69 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 8
2025-05-05 11:15:20 +03:00
description: Get picture block and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
2024-10-15 10:16:04 +03:00
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get picture block
Make picture block for SendMessage method
`Function GetPictureBlock(Val Name, Val URL) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --title | String | ✔ | Picture name |
| URL | --url | String | ✔ | URL of sending picture |
2024-10-15 10:16:04 +03:00
Returns: Structure - PictureBlock
<br/>
:::tip
2024-11-21 13:27:18 +03:00
Blocks at API documentation: [Link](https://dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&CHAPTER_ID=07867)
2024-10-15 10:16:04 +03:00
:::
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Name = "Image";
2025-10-21 11:36:43 +03:00
URL = "https://hut.openintegrations.dev/test_data/picture.jpg";
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetPictureBlock(Name, URL);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetPictureBlock \
2025-10-07 19:27:04 +03:00
--title "Image" \
--url "https://hut.openintegrations.dev/test_data/picture.jpg"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetPictureBlock ^
2025-10-07 19:27:04 +03:00
--title "Image" ^
--url "https://hut.openintegrations.dev/test_data/picture.jpg"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"IMAGE": {
"NAME": "Image",
2025-09-12 20:23:31 +03:00
"LINK": "https://hut.openintegrations.dev/test_data/picture.jpg"
2024-10-15 10:16:04 +03:00
}
}
```