You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
22
docs/en/md/Green_API/Account/Archive-chat.mdx
vendored
22
docs/en/md/Green_API/Account/Archive-chat.mdx
vendored
@@ -42,6 +42,28 @@ Method at API documentation: [ArchiveChat](https://green-api.com/docs/api/servic
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi ArchiveChat \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi ArchiveChat ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -41,6 +41,28 @@ More details in the API documentation: [Get access parameters to instance](https
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint greenapi FormAccessParameters \
|
||||
--api "***" \
|
||||
--media "https://7105.media.greenapi.com" \
|
||||
--id "7105187566" \
|
||||
--token "***"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint greenapi FormAccessParameters ^
|
||||
--api "***" ^
|
||||
--media "https://7105.media.greenapi.com" ^
|
||||
--id "7105187566" ^
|
||||
--token "***"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -39,6 +39,26 @@ Method at API documentation: [GetWaSettings](https://green-api.com/docs/api/acco
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetAccountInformation \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetAccountInformation ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -42,6 +42,28 @@ Method at API documentation: [GetAuthorizationCode](https://green-api.com/docs/a
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetAuthorizationCode \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--phone 441234567890
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetAuthorizationCode ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--phone 441234567890
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -29,6 +29,22 @@ import TabItem from '@theme/TabItem';
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
oint greenapi GetInstanceSettingsStructure \
|
||||
--empty true
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
oint greenapi GetInstanceSettingsStructure ^
|
||||
--empty true
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -39,6 +39,26 @@ Method at API documentation: [GetSettings](https://green-api.com/docs/api/accoun
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetInstanceSettings \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetInstanceSettings ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -39,6 +39,26 @@ Method at API documentation: [GetStateInstance](https://green-api.com/docs/api/a
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetInstanceStatus \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetInstanceStatus ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
20
docs/en/md/Green_API/Account/Reboot-instance.mdx
vendored
20
docs/en/md/Green_API/Account/Reboot-instance.mdx
vendored
@@ -39,6 +39,26 @@ Method at API documentation: [Reboot](https://green-api.com/docs/api/account/Reb
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi RebootInstance \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi RebootInstance ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -49,6 +49,28 @@ Method at API documentation: [SetSettings](https://green-api.com/docs/api/accoun
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetInstanceSettings \
|
||||
--settings "{'pollMessageWebhook':'yes','incomingBlockWebhook':'no','incomingCallWebhook':'no','editedMessageWebhook':'yes','deletedMessageWebhook':'yes'}" \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetInstanceSettings ^
|
||||
--settings "{'pollMessageWebhook':'yes','incomingBlockWebhook':'no','incomingCallWebhook':'no','editedMessageWebhook':'yes','deletedMessageWebhook':'yes'}" ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,28 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetProfilePicture \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--picture "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetProfilePicture ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--picture "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
22
docs/en/md/Green_API/Account/Unarchive-chat.mdx
vendored
22
docs/en/md/Green_API/Account/Unarchive-chat.mdx
vendored
@@ -42,6 +42,28 @@ Method at API documentation: [UnarchiveChat](https://green-api.com/docs/api/serv
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi UnarchiveChat \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi UnarchiveChat ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/ap
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
@@ -44,6 +44,30 @@ Method at API documentation: [AddGroupParticipant](https://green-api.com/docs/ap
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi AddGroupMember \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us" \
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi AddGroupMember ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us" ^
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -43,6 +43,28 @@ Method at API documentation: [CreateGroup](https://green-api.com/docs/api/groups
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi CreateGroup \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--name "New group"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi CreateGroup ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--name "New group"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
@@ -44,6 +44,30 @@ Method at API documentation: [RemoveGroupParticipant](https://green-api.com/docs
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi ExcludeGroupMember \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us" \
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi ExcludeGroupMember ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us" ^
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -35,13 +35,35 @@ Method at API documentation: [GetGroupData](https://green-api.com/docs/api/group
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetGroupInformation(AccessParameters, GroupID);
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetGroupInformation \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetGroupInformation ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -35,13 +35,35 @@ Method at API documentation: [LeaveGroup](https://green-api.com/docs/api/groups/
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.LeaveGroup(AccessParameters, GroupID);
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi LeaveGroup \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi LeaveGroup ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [RemoveAdmin](https://green-api.com/docs/api/groups
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
@@ -44,6 +44,30 @@ Method at API documentation: [RemoveAdmin](https://green-api.com/docs/api/groups
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi RevokeAdminRights \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us" \
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi RevokeAdminRights ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us" ^
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [SetGroupAdmin](https://green-api.com/docs/api/grou
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
UserID = "123123123@c.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
@@ -44,11 +44,34 @@ Method at API documentation: [SetGroupAdmin](https://green-api.com/docs/api/grou
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetAdminRights \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us" \
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetAdminRights ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us" ^
|
||||
--user "123123123@c.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"setGroupAdmin": true,
|
||||
"error": "participant not found"
|
||||
"setGroupAdmin": true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.SetGroupPicture(AccessParameters, GroupID, Image);
|
||||
|
||||
@@ -36,7 +36,7 @@ Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/gr
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
GroupID = "120363397584380843@g.us";
|
||||
GroupID = "120363418084188864@g.us";
|
||||
Name = "New name";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
@@ -44,6 +44,30 @@ Method at API documentation: [UpdateGroupName](https://green-api.com/docs/api/gr
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi UpdateGroupName \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--group "120363416469007868@g.us" \
|
||||
--name "New name"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi UpdateGroupName ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--group "120363416469007868@g.us" ^
|
||||
--name "New name"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -43,6 +43,28 @@ Method at API documentation: [GetChatHistory](https://green-api.com/docs/api/jou
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetChatHistory \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetChatHistory ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -40,6 +40,26 @@ Method at API documentation: [LastIncomingMessages](https://green-api.com/docs/a
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetIncomingMessageLog \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetIncomingMessageLog ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -37,13 +37,37 @@ Method at API documentation: [GetMessage](https://green-api.com/docs/api/journal
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5DA82B33D5FB6";
|
||||
MessageID = "BAE5B17D266155A1";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.GetMessage(AccessParameters, ChatID, MessageID);
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetMessage \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us" \
|
||||
--msg "BAE5C105B49789E1"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetMessage ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us" ^
|
||||
--msg "BAE5C105B49789E1"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -39,6 +39,26 @@ Method at API documentation: [ShowMessagesQueue](https://green-api.com/docs/api/
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetMessageQueue \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetMessageQueue ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -38,7 +38,7 @@ Method at API documentation: [DeleteMessage](https://green-api.com/docs/api/serv
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5DA82B33D5FB6";
|
||||
MessageID = "BAE5B17D266155A1";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.DeleteMessage(AccessParameters, ChatID, MessageID);
|
||||
|
||||
@@ -38,7 +38,7 @@ Method at API documentation: [EditMessage](https://green-api.com/docs/api/servic
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ChatID = "120363410406221140@g.us";
|
||||
MessageID = "BAE5DA82B33D5FB6";
|
||||
MessageID = "BAE5B17D266155A1";
|
||||
Text = "New message text";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
|
||||
@@ -40,7 +40,7 @@ Method at API documentation: [ForwardMessages](https://green-api.com/docs/api/se
|
||||
From = "11001234567@c.us";
|
||||
Target = "120363410406221140@g.us";
|
||||
|
||||
Message = "BAE5DA82B33D5FB6";
|
||||
Message = "BAE5B17D266155A1";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.ForwardMessages(AccessParameters, From, Target, Message);
|
||||
|
||||
@@ -49,6 +49,36 @@ Method at API documentation: [SendFileByUrl](https://green-api.com/docs/api/send
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SendFileByURL \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us" \
|
||||
--url "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4" \
|
||||
--filename "vid.mp4" \
|
||||
--caption "File description" \
|
||||
--quoted "BAE5C198462D09F2"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SendFileByURL ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us" ^
|
||||
--url "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4" ^
|
||||
--filename "vid.mp4" ^
|
||||
--caption "File description" ^
|
||||
--quoted "BAE5C198462D09F2"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -51,6 +51,36 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SendFile \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us" \
|
||||
--file "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4" \
|
||||
--filename "vid.mp4" \
|
||||
--caption "File description" \
|
||||
--quoted "BAE560068E9FFD47"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SendFile ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us" ^
|
||||
--file "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/video.mp4" ^
|
||||
--filename "vid.mp4" ^
|
||||
--caption "File description" ^
|
||||
--quoted "BAE560068E9FFD47"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -45,6 +45,32 @@ Method at API documentation: [SendMessage](https://green-api.com/docs/api/sendin
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SendTextMessage \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us" \
|
||||
--text "New message" \
|
||||
--quoted "BAE5C105B49789E1"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SendTextMessage ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us" ^
|
||||
--text "New message" ^
|
||||
--quoted "BAE5C105B49789E1"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -35,13 +35,35 @@ Method at API documentation: [DeleteNotification](https://green-api.com/docs/api
|
||||
IdInstance = "71051...";
|
||||
ApiTokenInstance = "425010d90e114aa6b78f0969e...";
|
||||
|
||||
ReceiptID = "2";
|
||||
ReceiptID = "1";
|
||||
|
||||
AccessParameters = OPI_GreenAPI.FormAccessParameters(ApiUrl, MediaUrl, IdInstance, ApiTokenInstance);
|
||||
Result = OPI_GreenAPI.DeleteNotificationFromQueue(AccessParameters, ReceiptID);
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi DeleteNotificationFromQueue \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--receipt "1"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi DeleteNotificationFromQueue ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--receipt "1"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -44,6 +44,30 @@ Method at API documentation: [DownloadFile](https://green-api.com/docs/api/recei
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi DownloadMessageFile \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us" \
|
||||
--message "BAE5A772FB921D7B"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi DownloadMessageFile ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us" ^
|
||||
--message "BAE5A772FB921D7B"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -42,6 +42,26 @@ Method at API documentation: [ReceiveNotification](https://green-api.com/docs/ap
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetNotification \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi GetNotification ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
@@ -44,6 +44,30 @@ Method at API documentation: [ReadChat](https://green-api.com/docs/api/marks/Rea
|
||||
```
|
||||
|
||||
|
||||
<Tabs>
|
||||
|
||||
<TabItem value="bash" label="Bash" default>
|
||||
```bash
|
||||
# JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetReadMark \
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" \
|
||||
--chat "120363410406221140@g.us" \
|
||||
--message "BAE5A772FB921D7B"
|
||||
```
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="bat" label="CMD/Bat" default>
|
||||
```batch
|
||||
:: JSON data can also be passed as a path to a .json file
|
||||
|
||||
oint greenapi SetReadMark ^
|
||||
--access "{'apiUrl':'***','mediaUrl':'https://7105.media.greenapi.com','idInstance':'7105187566','apiTokenInstance':'***'}" ^
|
||||
--chat "120363410406221140@g.us" ^
|
||||
--message "BAE5A772FB921D7B"
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
```json title="Result"
|
||||
|
||||
Reference in New Issue
Block a user