You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -11,7 +11,7 @@ sidebar_position: 1
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: String - URL for browser transition
|
||||
|
||||
@@ -12,7 +12,7 @@ sidebar_position: 2
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Code | --code | String | Code obtained from authorization See GetAuthorizationLink |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -11,7 +11,7 @@ sidebar_position: 3
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -15,7 +15,7 @@ sidebar_position: 1
|
||||
| MediaArray | --media | Array of String, BinaryData | Array of binary data or file paths |
|
||||
| PollOptionsArray | --options | Array of String | Array of poll options, if necessary |
|
||||
| PollDuration | --dur | String, Number | Poll duration if necessary (poll without duration is not created) |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -36,7 +36,7 @@ sidebar_position: 1
|
||||
ImageArray.Add(Image1);
|
||||
ImageArray.Add(Image2);
|
||||
|
||||
MediaArray = OPI_Twitter.UploadAttachmentsArray(ImageArray, "photo", Parameters);
|
||||
MediaArray = OPI_Twitter.UploadAttachmentsArray(ImageArray, "tweet_image", Parameters);
|
||||
Result = OPI_Twitter.CreateCustomTweet(Text, MediaArray, , , Parameters);
|
||||
```
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ sidebar_position: 4
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| GifsArray | --gifs | Array of String, BinaryData | Gif files array |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -13,7 +13,7 @@ sidebar_position: 3
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| ImageArray | --pictures | Array of String, BinaryData | Image files array |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -14,7 +14,7 @@ sidebar_position: 6
|
||||
| Text | --text | String | Tweet text |
|
||||
| OptionArray | --options | Array of String | Poll options array |
|
||||
| Duration | --duration | String, Number | Poll duration |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -12,7 +12,7 @@ sidebar_position: 2
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -13,7 +13,7 @@ sidebar_position: 5
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| VideosArray | --videos | Array of String, BinaryData | Video files array |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Upload attachments array
|
||||
Uploads files to the server and returns their IDs
|
||||
|
||||
|
||||
|
||||
`Function UploadAttachmentsArray(Val ArrayOfFiles, Val AttachmentsType, Val Parameters = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| ArrayOfFiles | --files | Array of String, BinaryData | Array of files to be uploaded |
|
||||
| AttachmentsType | --type | String | Attachment type: tweet_video, tweet_image, tweet_gif |
|
||||
| Parameters | --auth | Structure Of String | Authorization data. See GetStandardParameters |
|
||||
|
||||
|
||||
Returns: Array Of String - Media ID array
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Parameters = GetTwitterAuthData();
|
||||
|
||||
Image1 = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
||||
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg"; // URL, Binary Data or Path to file
|
||||
|
||||
ImageArray = New Array();
|
||||
ImageArray.Add(Image1);
|
||||
ImageArray.Add(Image2);
|
||||
|
||||
Result = OPI_Twitter.UploadAttachmentsArray(ImageArray, "tweet_image", Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint twitter UploadAttachmentsArray --files %files% --type %type% --auth %auth%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
[
|
||||
"1843891479330058240",
|
||||
"1843891499429142528"
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user