Skip to main content

Create text tweet

Creates a tweet without attachments

Function CreateTextTweet(Val Text, Val Parameters = "") ExportReturn CreateCustomTweet(Text, , , , Parameters);EndFunction

ParameterCLI optionTypeDescription
Text--textStringTweet text
Parameters--authStructure Of StringAuthorization JSON or path to .json

Returns: Map Of KeyAndValue - serialized JSON response from Twitter


Code example
  
Response = OPI_Twitter.CreateTextTweet("Regular text tweet", Parameters);
Response = OPI_Tools.JSONString(Response);
CLI command example
    
oint twitter CreateTextTweet --text %text% --auth %auth%

Result
{
"data": {
"text": "Regular text tweet",
"id": "1745752006310895822",
"edit_history_tweet_ids": [
"1745752006310895822"
]
}
}