[GH-ISSUE #138] Facebook #63

Closed
opened 2026-06-06 22:08:54 -04:00 by yindo · 1 comment
Owner

Originally created by @ujkam86-stack on GitHub (Feb 23, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/138

import requests

Define the channel URI

channel_uri = "[URL]"

Define the notification payload

payload = """
Sample Notification
This is a sample message
"""

Define the headers

headers = {
"Content-Type": "application/octet-stream",
"X-WNS-Type": "wns/raw",
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
    "X-WNS-RawNotificationType": "wns/raw/resume",
    "X-WNS-ResumeMetadata": {"title":"Continue call from…","expiry":"300", "type":"1"},
}

Send the POST request

response = requests.post(channel_uri, data=payload, headers=headers)

Print the response status

print(f"Response Status: {response.status_code}")
print(f"Response Body: {response.text}")

Originally created by @ujkam86-stack on GitHub (Feb 23, 2026). Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/138 import requests # Define the channel URI channel_uri = "[URL]" # Define the notification payload payload = """ Sample Notification This is a sample message """ # Define the headers headers = { "Content-Type": "application/octet-stream", "X-WNS-Type": "wns/raw", "Authorization": "Bearer YOUR_ACCESS_TOKEN",     "X-WNS-RawNotificationType": "wns/raw/resume",     "X-WNS-ResumeMetadata": {"title":"Continue call from…","expiry":"300", "type":"1"}, } # Send the POST request response = requests.post(channel_uri, data=payload, headers=headers) # Print the response status print(f"Response Status: {response.status_code}") print(f"Response Body: {response.text}")
yindo closed this issue 2026-06-06 22:08:54 -04:00
Author
Owner

@asdek commented on GitHub (Feb 23, 2026):

hey @ujkam86-stack

thank you for your issue!
however, this code snippet appears to be related to Windows Push Notification Service (WNS), which doesn't seem connected to PentAGI's functionality.

could you please clarify:

  1. what feature or integration are you requesting?
  2. how does this relate to PentAGI's penetration testing capabilities?

if you're requesting a notification system for PentAGI task completion alerts, please describe your use case in more detail

<!-- gh-comment-id:3948536534 --> @asdek commented on GitHub (Feb 23, 2026): hey @ujkam86-stack thank you for your issue! however, this code snippet appears to be related to Windows Push Notification Service (WNS), which doesn't seem connected to PentAGI's functionality. could you please clarify: 1. what feature or integration are you requesting? 2. how does this relate to PentAGI's penetration testing capabilities? if you're requesting a notification system for PentAGI task completion alerts, please describe your use case in more detail
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vxcontrol/pentagi#63