mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 12:37:04 -04:00
[GH-ISSUE #138] Facebook #63
Reference in New Issue
Block a user
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?
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}")
@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:
if you're requesting a notification system for PentAGI task completion alerts, please describe your use case in more detail