mirror of
https://github.com/mimamch/wa-gateway.git
synced 2026-04-25 00:45:49 +03:00
[PR #12] [CLOSED] feature webhook on session #76
Labels
No labels
bug
documentation
invalid
pull-request
question
request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wa-gateway-mimamch#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mimamch/wa-gateway/pull/12
Author: @huiralb
Created: 7/13/2023
Status: ❌ Closed
Base:
master← Head:feat/webhook📝 Commits (1)
2bbbda3feature webhook on session📊 Changes
7 files changed (+1052 additions, -455 deletions)
View changed files
📝
.env(+3 -1)📝
app/controllers/session_controller.js(+20 -0)📝
index.js(+7 -0)📝
package-lock.json(+1002 -454)📝
package.json(+4 -0)➕
utils/request.js(+1 -0)➕
utils/webhook.js(+15 -0)📄 Description
Hello @mimamch . I just added feature webhook. At this moment i added for session section.
Reason
We want to any callback or message from server-gateway to tell client-server which the session was connected.
Usage
.envfile withWEBHOOK_ENABLED=trueGET
/start-session?session=NEW_SESSION_NAME&scan=true&webhookUrl=http://client-server.test/callbackWe assume you have client-server url
http://client-server.test/callback$_POST['session']and$_POST['event']Extra:
.envfile withWEBHOOK_URL=http://client-server.test/callback🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.