1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/Twitter/CreateCustomTweet.txt

13 lines
561 B
Plaintext
Raw Normal View History

2024-10-05 11:21:35 +03:00
 Parameters = GetTwitterAuthData();
Text = "TestTweet" + String(New UUID);
2025-06-29 14:35:33 +03:00
Image1 = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Binary Data or File path
Image2 = "https://hut.openintegrations.dev/test_data/picture2.jpg"; // URL, Binary Data or File path
2024-10-05 11:21:35 +03:00
2025-03-06 20:58:59 +03:00
ImageArray = New Array;
2024-10-05 11:21:35 +03:00
ImageArray.Add(Image1);
ImageArray.Add(Image2);
2024-10-13 01:21:47 +03:00
MediaArray = OPI_Twitter.UploadAttachmentsArray(ImageArray, "tweet_image", Parameters);
2024-10-05 14:42:31 +03:00
Result = OPI_Twitter.CreateCustomTweet(Text, MediaArray, , , Parameters);