You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
51 lines
1022 B
Markdown
51 lines
1022 B
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# 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
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
|
Parameters = GetTwitterAuthData();
|
|
Text = "TestTweet" + String(New UUID);
|
|
|
|
Result = OPI_Twitter.CreateTextTweet(Text, Parameters);
|
|
```
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
oint twitter CreateTextTweet --text %text% --auth %auth%
|
|
|
|
```
|
|
|
|
```json title="Result"
|
|
{
|
|
"data": {
|
|
"text": "TestTweet26d59b21-149c-4883-b776-bc9cc58d4008",
|
|
"id": "1842574183802232943",
|
|
"edit_history_tweet_ids": [
|
|
"1842574183802232943"
|
|
]
|
|
}
|
|
}
|
|
```
|