@wppconnect/server 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +12 -2
- package/dist/controller/deviceController.js +23 -11
- package/dist/controller/groupController.js +1 -22
- package/dist/controller/messageController.js +5 -1
- package/dist/controller/orderController.js +3 -5
- package/dist/middleware/statusConnection.js +7 -3
- package/dist/swagger.json +28 -26
- package/dist/util/createSessionUtil.js +5 -2
- package/dist/util/functions.js +10 -4
- package/package.json +39 -39
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -93,6 +93,16 @@ sudo dpkg -i google-chrome-stable_current_amd64.deb
|
|
|
93
93
|
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
### Troubleshooting
|
|
97
|
+
If you encounter installation issues, please try the procedures below
|
|
98
|
+
. Error Sharp Runtime
|
|
99
|
+
```sh
|
|
100
|
+
yarn add sharp
|
|
101
|
+
npm install --include=optional sharp
|
|
102
|
+
//or
|
|
103
|
+
yarn add sharp --ignore-engines
|
|
104
|
+
```
|
|
105
|
+
|
|
96
106
|
## Run Server
|
|
97
107
|
|
|
98
108
|
```sh
|
|
@@ -250,7 +260,7 @@ To generate an access token, you must use your `SECRET_KEY`.
|
|
|
250
260
|
Using the route:
|
|
251
261
|
|
|
252
262
|
```shell
|
|
253
|
-
curl -X POST --location "http://localhost:21465/api/mySession/
|
|
263
|
+
curl -X POST --location "http://localhost:21465/api/mySession/THISISMYSECURETOKEN/generate-token"
|
|
254
264
|
```
|
|
255
265
|
|
|
256
266
|
### Response:
|
|
@@ -299,7 +309,7 @@ curl -X POST --location "http://localhost:21465/api/mySession/send-message" \
|
|
|
299
309
|
-H "Accept: application/json" \
|
|
300
310
|
-H "Authorization: Bearer \$2b\$10\$8aQFQxnWREtBEMZK_iHMe.u7NeoNkjL7s6NYai_83Pb31Ycss6Igm" \
|
|
301
311
|
-d "{
|
|
302
|
-
\"phone\": \"
|
|
312
|
+
\"phone\": \"5511900000000\",
|
|
303
313
|
\"message\": \"*Abner* Rodrigues\"
|
|
304
314
|
}"
|
|
305
315
|
```
|