1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-06 21:04:14 +02:00
Files
OpenIntegrations/docs/en/examples/Twitter/CreateCustomTweet.txt
T
Vitaly the Alpaca (bot) 982eeca1ac Main build (Jenkins)
2024-10-06 21:51:35 +03:00

13 lines
563 B
Plaintext

Parameters = GetTwitterAuthData();
Text = "TestTweet" + String(New UUID);
Image1 = "https://openyellow.neocities.org/test_data/picture.jpg"; // URL, Binary Data or Path to file
Image2 = "https://openyellow.neocities.org/test_data/picture2.jpg"; // URL, Binary Data or Path to file
ImageArray = New Array();
ImageArray.Add(Image1);
ImageArray.Add(Image2);
MediaArray = OPI_Twitter.UploadAttachmentsArray(ImageArray, "photo", Parameters);
Result = OPI_Twitter.CreateCustomTweet(Text, MediaArray, , , Parameters);