1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-31 23:20:02 +02:00
OpenIntegrations/docs/en/examples/Twitter/CreateImageTweet.txt

15 lines
541 B
Plaintext
Raw Normal View History

2024-09-21 10:57:02 +03:00
 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);
2024-09-21 22:23:55 +03:00
Text = "TestTweet" + String(New UUID);
2024-09-21 10:57:02 +03:00
Result = OPI_Twitter.CreateImageTweet(Text, Image, Parameters);