Push
Send push notifications
Send a push notification to a user
Send push notification
Request Body
Name
Type
Description
{
"id": "cllld08g00001ky08yqf5qdozson"
}curl https://api.usewuf.com/v1/push
-d apiKey='aeZVV0aaUA8y0Dqij_ptna'
-d userKey='uswXhaoDan2maAerZK9HZV'
-d title='New message received'
-d description='Hey, how are you doing?'
-d emoji='💬'
-d url='https://mychat.app/user/john' const axios = require('axios');
const data = JSON.stringify({
"apiKey": "aeZVV0aaUA8y0Dqij_ptna",
"userKey": "uswXhaoDan2maAerZK9HZV",
"title": "New report",
"body": "Read the latest news",
"emoji": "📈",
"url": "https://mysite.com/report-2023",
});
var config = {
method: 'post',
url: 'https://api.usewuf.com/v1/push',
headers: {
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});Last updated