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 | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: String - URL for browser transition
|
||||
@@ -22,8 +22,8 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Twitter.GetAuthorizationLink(Parameters);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Result = OPI_Twitter.GetAuthorizationLink(Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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 | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
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 | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -22,12 +22,8 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Twitter.RefreshToken(Parameters);
|
||||
Constants.TwitterToken.Set(Response["access_token"]);
|
||||
Constants.TwitterRefresh.Set(Response["refresh_token"]);
|
||||
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Result = OPI_Twitter.RefreshToken(Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ sidebar_position: 3
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| GifsArray | --gifs | Array of String, BinaryData | Gif files array |
|
||||
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -24,13 +24,20 @@ sidebar_position: 3
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add("C:\1.gif");
|
||||
ImageArray.Add("C:\2.gif");
|
||||
|
||||
Response = OPI_Twitter.CreateGifTweet("Gifs", ImageArray, Parameters);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
|
||||
GIF = OPI_TestDataRetrieval.GetBinary("GIF"); // URL, Binary or Path to file
|
||||
Gif2 = OPI_TestDataRetrieval.GetBinary("GIF"); // URL, Binary or Path to file
|
||||
|
||||
GifsArray = New Array;
|
||||
GifsArray.Add(GIF);
|
||||
GifsArray.Add(Gif2);
|
||||
|
||||
Result = OPI_Twitter.CreateGifTweet(Text, GifsArray, Parameters);
|
||||
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
Result = OPI_Twitter.CreateGifTweet(Text, GIF, Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ sidebar_position: 2
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| ImageArray | --pictures | Array of String, BinaryData | Image files array |
|
||||
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -24,13 +24,20 @@ sidebar_position: 2
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add("C:\logo.png");
|
||||
ImageArray.Add("C:\logo_long.png");
|
||||
|
||||
Response = OPI_Twitter.CreateImageTweet("Alpaca", ImageArray, Parameters);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
|
||||
Image = OPI_TestDataRetrieval.GetBinary("Picture"); // URL, Binary or Path to file
|
||||
Image2 = OPI_TestDataRetrieval.GetBinary("Picture2"); // URL, Binary or Path to file
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add(Image);
|
||||
ImageArray.Add(Image2);
|
||||
|
||||
Result = OPI_Twitter.CreateImageTweet(Text, ImageArray, Parameters);
|
||||
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
Result = OPI_Twitter.CreateImageTweet(Text, Image, Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ sidebar_position: 5
|
||||
| Text | --text | String | Tweet text |
|
||||
| OptionArray | --options | Array of String | Poll options array |
|
||||
| Duration | --duration | String, Number | Poll duration |
|
||||
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -25,14 +25,14 @@ sidebar_position: 5
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
OptionArray = New Array;
|
||||
OptionArray.Add("Good");
|
||||
OptionArray.Add("Nothing special");
|
||||
OptionArray.Add("Bad");
|
||||
|
||||
Response = OPI_Twitter.CreatePollTweet("How are you?", OptionArray, 60, Parameters);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
|
||||
AnswersArray = New Array;
|
||||
AnswersArray.Add("Option 1");
|
||||
AnswersArray.Add("Option 2");
|
||||
|
||||
Result = OPI_Twitter.CreatePollTweet(Text, AnswersArray, 60, Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ sidebar_position: 1
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -23,9 +23,10 @@ sidebar_position: 1
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
Response = OPI_Twitter.CreateTextTweet("Regular text tweet", Parameters);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
|
||||
Result = OPI_Twitter.CreateTextTweet(Text, Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ sidebar_position: 4
|
||||
|-|-|-|-|
|
||||
| Text | --text | String | Tweet text |
|
||||
| VideosArray | --videos | Array of String, BinaryData | Video files array |
|
||||
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
|
||||
| Parameters | --auth | Structure Of String | Auth data or path to .json file |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from Twitter
|
||||
@@ -24,13 +24,20 @@ sidebar_position: 4
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
|
||||
ImageArray = New Array;
|
||||
ImageArray.Add("C:\1.mp4");
|
||||
ImageArray.Add("C:\2.mp4");
|
||||
|
||||
Response = OPI_Twitter.CreateVideoTweet("Nature", ImageArray, Parameters);
|
||||
Response = OPI_Tools.JSONString(Response);
|
||||
Parameters = GetTwitterAuthData();
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
|
||||
Video = OPI_TestDataRetrieval.GetBinary("Video"); // URL, Binary or Path to file
|
||||
Video2 = OPI_TestDataRetrieval.GetBinary("Video"); // URL, Binary or Path to file
|
||||
|
||||
VideosArray = New Array;
|
||||
VideosArray.Add(Video);
|
||||
VideosArray.Add(Video2);
|
||||
|
||||
Result = OPI_Twitter.CreateVideoTweet(Text, VideosArray, Parameters);
|
||||
|
||||
Text = "TestTweet" + String(New UUID);
|
||||
Result = OPI_Twitter.CreateVideoTweet(Text, Video, Parameters);
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user