Skip to main content

Create video tweet

Creates a tweet with a video attachment

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

ParameterCLI optionTypeDescription
Text--textStringTweet text
VideosArray--videosArray of String, BinaryDataVideo files array
Parameters--authStructure Of StringAuthorization JSON or path to .json

Returns: Map Of KeyAndValue - serialized JSON response from Twitter


Code example
  
ImageArray = New Array;
ImageArray.Add("C:\1.mp4");
ImageArray.Add("C:\2.mp4");

Response = OPI_Twitter.CreateVideoTweet("Nature", ImageArray, Parameters);
Response = OPI_Tools.JSONString(Response);
CLI command example
    
oint twitter CreateVideoTweet --text %text% --videos %videos% --auth %auth%

Result
{
"data": {
"text": "Alpaca https://t.co/OodoWT1AAA",
"id": "1745753004542726629",
"edit_history_tweet_ids": [
"1745753004542726629"
]
}
}