1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-10 04:18:47 +02:00
OpenIntegrations/docs/en/md/Twitter/Tweets/Create-video-tweet.md
2024-08-14 09:06:31 +03:00

1.1 KiB

sidebar_position
4

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 Authorization JSON or path to .json

Returns: Map Of KeyAndValue - serialized JSON response from Twitter


  
  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);
    
  oint twitter CreateVideoTweet --text %text% --videos %videos% --auth %auth%

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