1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-25 21:39:21 +02:00
OpenIntegrations/docs/en/examples/Twitter/CreateImageTweet.txt
2024-09-21 22:23:55 +03:00

15 lines
541 B
Plaintext

Parameters = GetTwitterAuthData();
Text = "TestTweet" + String(New UUID);
Image = OPI_TestDataRetrieval.GetBinary("Picture"); // URL, Binary or Path to file
Image2 = OPI_TestDataRetrieval.GetBinary("Picture2"); // URL, Binary or Path to file
ImageArray = New Array;
ImageArray.Add(Image);
ImageArray.Add(Image2);
Result = OPI_Twitter.CreateImageTweet(Text, ImageArray, Parameters);
Text = "TestTweet" + String(New UUID);
Result = OPI_Twitter.CreateImageTweet(Text, Image, Parameters);