1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Twitter/Tweets/Create-video-tweet.md
T
Vitaly the Alpaca (bot) 2741c109d2 Main build (Jenkins)
2024-10-06 21:51:35 +03:00

1.5 KiB

sidebar_position
sidebar_position
5

Create video tweet

Creates a tweet with a video attachment

Function CreateVideoTweet(Val Text, Val VideosArray, Val Parameters = "") Export

Parameter CLI option Type Description
Text --text String Tweet text
VideosArray --videos Array of String, BinaryData Video files array
Parameters --auth Structure Of String Auth data or path to .json file

Returns: Map Of KeyAndValue - serialized JSON response from Twitter


    Parameters = GetTwitterAuthData();
    Text       = "TestTweet" + String(New UUID);

    Video  = "https://openyellow.neocities.org/test_data/video.mp4"; // URL, Binary or Path to file
    Video2 = "https://openyellow.neocities.org/test_data/video.mp4"; // URL, Binary or Path to file

    VideosArray = New Array;
    VideosArray.Add(Video);
    VideosArray.Add(Video2);

    Result = OPI_Twitter.CreateVideoTweet(Text, VideosArray, Parameters);

    Text   = "TestTweet" + String(New UUID);
    Result = OPI_Twitter.CreateVideoTweet(Text, Video, Parameters);
    
  oint twitter CreateVideoTweet --text %text% --videos %videos% --auth %auth%

{
 "data": {
  "edit_history_tweet_ids": [
   "1842574564661891428"
  ],
  "text": "TestTweetfc831f3f-79b1-441d-8e3e-aecd053466ef",
  "id": "1842574564661891428"
 }
}