1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/Twitter/CreateCustomTweet.txt
Vitaly the Alpaca (bot) 7dc8cdfa67 Main build (Jenkins)
2025-04-16 22:15:09 +03:00

13 lines
555 B
Plaintext
Vendored

Parameters = GetTwitterAuthData();
Text = "TestTweet" + String(New UUID);
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or File path
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary Data or File path
ImageArray = New Array;
ImageArray.Add(Image1);
ImageArray.Add(Image2);
MediaArray = OPI_Twitter.UploadAttachmentsArray(ImageArray, "tweet_image", Parameters);
Result = OPI_Twitter.CreateCustomTweet(Text, MediaArray, , , Parameters);