mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-14 11:23:46 +02:00
1.1 KiB
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 | Destination |
---|---|---|---|
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"
]
}
}