Create text tweet
Creates a tweet without attachments
Function CreateTextTweet(Val Text, Val Parameters = "") ExportReturn CreateCustomTweet(Text, , , , Parameters);EndFunction
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Text | --text | String | ✔ | Tweet text |
Parameters | --auth | Structure Of String | ✖ | Authorization data. See GetStandardParameters |
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
1C:Enterprise/OneScript code example
Parameters = GetTwitterAuthData();
Text = "TestTweet" + String(New UUID);
Result = OPI_Twitter.CreateTextTweet(Text, Parameters);
- Bash
- CMD/Bat
oint twitter CreateTextTweet \
--text "TestTweet5b12e40d-3d53-455a-b807-90307511c109" \
--auth "{'redirect_uri':'https://hut.openintegrations.dev/melezh/6ad91cc8b','client_id':'***','client_secret':'***','access_token':'***','refresh_token':'***','oauth_token':'***','oauth_token_secret':'***','oauth_consumer_key':'***','oauth_consumer_secret':'***'}"
oint twitter CreateTextTweet ^
--text "TestTweet5b12e40d-3d53-455a-b807-90307511c109" ^
--auth "{'redirect_uri':'https://hut.openintegrations.dev/melezh/6ad91cc8b','client_id':'***','client_secret':'***','access_token':'***','refresh_token':'***','oauth_token':'***','oauth_token_secret':'***','oauth_consumer_key':'***','oauth_consumer_secret':'***'}"
Result
{
"title": "Too Many Requests",
"detail": "Too Many Requests",
"type": "about:blank",
"status": 429
}