2017 © Pedro Peláez
 

library pushover-http

PHP http get/post API for pushover.net

image

nuccleon/pushover-http

PHP http get/post API for pushover.net

  • Wednesday, January 24, 2018
  • by nuccleon
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Pushover for HTTP

A simple HTTP api for the Pushover service. This is to make the service accessible for smaller (e.g. embedded) devices that does not support https., (*1)

Install via composer

Use the Composer to install., (*2)

Add pushover-http to composer.json configuration file., (*3)

$ composer require nuccleon/pushover-http

And update the composer, (*4)

$ composer update

Usage

Configuration

Provide your own pushover-http.ini.php file to preset the http parameters., (*5)

cat pushover-http-config.ini.php.template > pushover-http-config.ini.php

HTTP API

Pass parameter either with GET or with POST, At least user, token and priority., (*6)

See Pushover-API for detailed parameter description., (*7)

'job'       =>  $mandatory, // Job selector. 'push', 'poll' or 'cancel' allowed.
'user'      =>  $mandatory, // the user/group key (not e-mail address) of your user (or you), viewable
                            // when logged into our dashboard (often referred to as USER_KEY in our
                            // documentation and code examples)
'token'     =>  $mandatory, // your application's API token
'message'   =>  $mandatory, // your message
'priority'  =>  $optional,  // send as -2 to generate no notification/alert, -1 to always send as a quiet
                            // notification, 1 to display as high-priority and bypass the user's quiet hours,
                            // or 2 to also require confirmation from the user
'attachment =>  $optional,  // An image attachment to send with the message (could be either a path to the image or an URL to download the image from)                            
'device'    =>  $optional,  // your user's device name to send the message directly to that device,
                            // rather than all of the user's devices (multiple devices may be separated by a comma)
'title'     =>  $optional,  // your message's title, otherwise your app's name is used
'url'       =>  $optional,  // a supplementary URL to show with your message
'urlTitle'  =>  $optional,  // a title for your supplementary URL, otherwise just the URL is shown
'sound'     =>  $optional,  // The name of one of the sounds supported by device clients to override the user's default sound choice
'html'      =>  $optional,  // To enable HTML formatting. The normal message content in your message parameter will then be displayed as HTML. 
'date'      =>  $optional,  // a Unix timestamp of your message's date and time to display to the user, rather than the time your message is received by our API
                            // has to be formated as defined in DATE_FORMAT
'retry'     =>  $optional,  // Specifies how often (in seconds) the Pushover servers will send the same notification to the user (EMERGENCY only, mandatory for EMERGENCY)
'expire'    =>  $optional,  // The expire parameter specifies how many seconds your notification will continue to be retried (EMERGENCY only, mandatory for EMERGENCY)
'callback'  =>  $optional,  // The optional callback parameter may be supplied with a publicly-accessible URL that our servers will send a request to when the user has acknowledged your notification.
'receipt'   =>  $mandatory, // This receipt can be used to periodically poll the receipts API to get the status of your notification
'echo'      =>  $optional   // set this to redirect debug logs to the http response (GET only)
'config'    =>  $optional   // The configuration group within the ini-file that should be used

Basic Example using wget and GET

wget "localhost/pushover-http/pushover-http.php/?job=push&user=foo&token=bar&message=baz&config=my

Debugging

Append pushover-http.php?echo to the query to redirect the logger output to the http response instead of the logfile, (*8)

The Versions

24/01 2018

dev-master

9999999-dev https://github.com/nuccleon/pushover-http

PHP http get/post API for pushover.net

  Sources   Download

MIT

The Requires

 

by Claus Beckenbauer

api http notification ios push android mobile iphone tablet post get pushover ipad

22/01 2017

V1.2.0

1.2.0.0 https://github.com/nuccleon/pushover-http

PHP http get/post API for pushover.net

  Sources   Download

MIT

The Requires

 

by Claus Beckenbauer

api http notification ios push android mobile iphone tablet post get pushover ipad

20/01 2017

V1.1.0

1.1.0.0 https://github.com/nuccleon/pushover-http

PHP http get/post API for pushover.net

  Sources   Download

MIT

The Requires

 

by Claus Beckenbauer

api http notification ios push android mobile iphone tablet post get pushover ipad

19/01 2017

V1.0.0

1.0.0.0 https://github.com/nuccleon/pushover-http

PHP http get/post API for pushover.net

  Sources   Download

MIT

The Requires

 

by Claus Beckenbauer

api http notification ios push android mobile iphone tablet post get pushover ipad

18/01 2017

v0.0.1

0.0.1.0 https://github.com/nuccleon/pushover-http

PHP http get/post API for pushover.net

  Sources   Download

MIT

The Requires

 

by Claus Beckenbauer

api http notification ios push android mobile iphone tablet post get pushover ipad

18/01 2017

v0.1.1

0.1.1.0 https://github.com/nuccleon/pushover-http

PHP http get/post API for pushover.net

  Sources   Download

MIT

The Requires

 

by Claus Beckenbauer

api http notification ios push android mobile iphone tablet post get pushover ipad