1.0.0 • Published 6 years ago
push-all v1.0.0
Установка
Node.js 10.0.0 или новее версии
NPM
npm i push-all|Документация |---------------------------|
Пример
const pushAll = require('push-all');
const push = new pushAll({
    id: 1,
    key: 'Ключ'
});
push.selfSend({
    title: 'Тестовое уведомление (PushAllJS)',
    text: 'Тестируем.........',
    url: 'https://google.com',
    ttl: 60,
}).then((result) => {
    console.log('Результат успешно получен: ');
    console.log(result);
}).catch((err) => {
    console.log('Произошла ошибка: ');
    console.error(err);
});
1.0.0
6 years ago