pushover-promise

    1.0.0 • Public • Published

    pushover-promise

    Travis

    Pushover.net API promise wrapper.

    Currently supporting only the message API.

    Installation

    It's available on npm.

    npm install --save pushover-promise
    

    API Documentation

    Usage

    Basic

     
    import { Message } from 'pushover-promise';
    // or
    const Message = require('pushover-promise').Message;
     
    const user = 'user';
    const token = 'token';
     
    const msg = new Message(user, token);
     
    msg.push('Pushover message API is now as a promise')
    .then(console.log)
    .catch(console.error);
     

    All included

    const Message = require('pushover-promise').Message;
     
    const user = 'user';
    const token = 'token';
     
    const msg = new Message(user, token);
     
    msg.push('Pushover message API is now as a promise', {
        title: 'Check out my package', // Optional
        url: 'http://www.npmjs.com/package/pushover-promise', // Optional
        url_title: 'package: pushover-promise', // Optional
        priority: 2, // Optional
        retry: 30, // Optional
        expire: 120 // Optional
    })
    .then(console.log)
    .catch(console.error);

    Missing pieces

    Tests

    $ npm test

    Contribution

    Contributions are appreciated.

    License

    MIT-licensed. See LICENSE.

    Install

    npm i pushover-promise

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • bjarneo