Skip to main content

Create gif tweet

Creates a tweet with a gif attachment

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

ParameterCLI optionTypeDescription
Text--textStringTweet text
GifsArray--gifsArray of String, BinaryDataGif 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.gif");
ImageArray.Add("C:\2.gif");

Response = OPI_Twitter.CreateGifTweet("Gifs", ImageArray, Parameters);
Response = OPI_Tools.JSONString(Response);
CLI command example
    
oint twitter CreateGifTweet --text %text% --gifs %gifs% --auth %auth%

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