1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00
OpenIntegrations/docs/en/md/Twitter/Tweets/Create-gif-tweet.md
2024-08-14 09:06:31 +03:00

1.1 KiB

sidebar_position
3

Create gif tweet

Creates a tweet with a gif attachment

Function CreateGifTweet(Val Text, Val GifsArray, Val Parameters = "") Export

Parameter CLI option Type Description
Text --text String Tweet text
GifsArray --gifs Array of String, BinaryData Gif 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.gif");
  ImageArray.Add("C:\2.gif");
  
  Response = OPI_Twitter.CreateGifTweet("Gifs", ImageArray, Parameters);
  Response = OPI_Tools.JSONString(Response);
    
  oint twitter CreateGifTweet --text %text% --gifs %gifs% --auth %auth%

{
  "data": {
  "text": "Nature https://t.co/VWkWU11111",
  "id": "1746086669499924991",
  "edit_history_tweet_ids": [
  "1746086669499924991"
  ]
  }
  }