Send a test push notification
curl --request POST \
--url https://api.sitespy.app/api/v1/webpush/test \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/webpush/test"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/webpush/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "<string>"
}Web Push Notifications
Send a test push notification
Send a test push notification to all subscribed browsers.
POST
/
webpush
/
test
Send a test push notification
curl --request POST \
--url https://api.sitespy.app/api/v1/webpush/test \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/webpush/test"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/webpush/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "<string>"
}
