You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-07-01 00:55:36 +02:00
994 B
994 B
sidebar_position
sidebar_position |
---|
1 |
Generate image block
Generates a block with an image to add to the message block array
Function GenerateImageBlock(Val URL, Val AlternateText = "") Export
Parameter | CLI option | Type | Description |
---|---|---|---|
URL | --picture | String | Image URL |
AlternateText | --alt | String | Alternate text of the image |
Returns: Map Of KeyAndValue - Image block
Image = "https://openyellow.neocities.org/test_data/picture.jpg";
Result = OPI_Slack.GenerateImageBlock(Image, "Image");
oint slack GenerateImageBlock --picture "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/Media/logo.png?v1" --alt %alt%
{
"type": "image",
"image_url": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
"alt_text": "Image"
}