1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Twitter/Tweets/Create-text-tweet.md
T
Vitaly the Alpaca (bot) 4a9fd2c336 Main build (Jenkins)
2024-09-24 11:38:18 +03:00

998 B

sidebar_position
sidebar_position
1

Create text tweet

Creates a tweet without attachments

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

Parameter CLI option Type Description
Text --text String Tweet text
Parameters --auth Structure Of String Auth data or path to .json file

Returns: Map Of KeyAndValue - serialized JSON response from Twitter


    Parameters = GetTwitterAuthData();
    Text       = "TestTweet" + String(New UUID);

    Result = OPI_Twitter.CreateTextTweet(Text, Parameters);
    
  oint twitter CreateTextTweet --text %text% --auth %auth%

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