forked from edupoli/baileys-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ookamiiixd#3 from RocketsLab/group-functions
Updates group resources
- Loading branch information
Showing
7 changed files
with
214 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "4e47ac1f-23ee-4d64-8bc8-ea84762913f2", | ||
"name": "New Collection", | ||
"name": "WhatsApp Api Baileys", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
}, | ||
"item": [ | ||
|
@@ -15,7 +15,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"session\": \"instance-one\"\n}", | ||
"raw": "{\n \"session\": \"{{instance}}\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -52,7 +52,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"session\": \"instance-one\"\n}", | ||
"raw": "{\n \"session\": \"{{instance}}\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -85,7 +85,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"name\" : \"group-test\",\n \"members\" : \"5511900000000\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"name\" : \"group-test\",\n \"members\" : \"5511900000000\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -109,11 +109,11 @@ | |
{ | ||
"name": "Update Description", | ||
"request": { | ||
"method": "PATCH", | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"description\" : \"Nova Descrição do Grupo\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"description\" : \"Nova Descrição do Grupo\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -137,11 +137,11 @@ | |
{ | ||
"name": "Update Name", | ||
"request": { | ||
"method": "PATCH", | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"name\" : \"Test 001\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"name\" : \"Test 001\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -169,7 +169,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"members\" : \"55119000000\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"members\" : \"55119000000\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -197,7 +197,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"members\" : \"55119000000\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"members\" : \"55119000000\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -225,7 +225,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"members\" : \"551190000000\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"members\" : \"551190000000\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -248,24 +248,30 @@ | |
}, | ||
{ | ||
"name": "All Groups", | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"session\": \"{{instance}}\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{host}}:{{port}}/groups/get?session=instance-one", | ||
"raw": "{{host}}:{{port}}/groups/all-groups", | ||
"host": [ | ||
"{{host}}" | ||
], | ||
"port": "{{port}}", | ||
"path": [ | ||
"groups", | ||
"get" | ||
], | ||
"query": [ | ||
{ | ||
"key": "session", | ||
"value": "instance-one" | ||
} | ||
"all-groups" | ||
] | ||
} | ||
}, | ||
|
@@ -281,7 +287,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -312,7 +318,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -340,7 +346,7 @@ | |
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -364,11 +370,11 @@ | |
{ | ||
"name": "Setting Message", | ||
"request": { | ||
"method": "PATCH", | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"value\" : true\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"value\" : true\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -392,11 +398,11 @@ | |
{ | ||
"name": "Setting Change", | ||
"request": { | ||
"method": "PATCH", | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"sender\": \"instance-one\",\n \"groupId\" : \"[email protected]\",\n \"value\" : true\n}", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\",\n \"value\" : true\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
|
@@ -416,6 +422,62 @@ | |
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Accept Invite", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"code\" : \"It8GoNNgWW9LfwtR8nuyru\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{host}}:{{port}}/groups/group-accept-invite", | ||
"host": [ | ||
"{{host}}" | ||
], | ||
"port": "{{port}}", | ||
"path": [ | ||
"groups", | ||
"group-accept-invite" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Revoke Invite", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{ \n \"session\": \"{{instance}}\",\n \"groupId\" : \"[email protected]\"\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{host}}:{{port}}/groups/group-revoke-invite", | ||
"host": [ | ||
"{{host}}" | ||
], | ||
"port": "{{port}}", | ||
"path": [ | ||
"groups", | ||
"group-revoke-invite" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} | ||
|
@@ -448,6 +510,10 @@ | |
{ | ||
"key": "port", | ||
"value": "8000" | ||
}, | ||
{ | ||
"key": "instance", | ||
"value": "default" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.