dev-master
9999999-devPHP class for the Pushover.net project
PHP class for the Pushover.net project
Pushover is the ideal application for sending (free) push notifications to iOS and Android devices, using this very simple API., (*1)
php-pushover class is a PHP wrapper class for using the Pushover (https://pushover.net) REST API. Have a look at their API docs (https://pushover.net/api) for more information about all the parameters., (*2)
setToken, (*3)
Your app API key., (*4)
setUser, (*5)
The user's API key., (*6)
setTitle, (*7)
Set title of push notification., (*8)
setMessage, (*9)
Set message of push notification., (*10)
setUrl, (*11)
Add an url to your notification., (*12)
setUrlTitle, (*13)
Set a title if you want to show a text instead of the actual url., (*14)
setSound, (*15)
Set the notification sound to be played. See Pushover API for options or use getSoundsList(), (*16)
setDevice, (*17)
Leave this empty if you want to send to all user's devices. This can be user specific!, (*18)
setPriority, (*19)
Default = 0, if 1 the user's quiet hours will be ignored + messages displayed in red. If 2, the same behaviour as 1 applies; but the message will repeat until the user acknowledges it., (*20)
setExpire, (*21)
The expire parameter is only used when the Priority is set to 2 (or emergency-priority), and specifies how many seconds your notification will continue to be retried for. (Max Value = 86400), (*22)
setRetry, (*23)
The Retry parameter is only used when the Priority is set to 2 (or emergency-priority), and specifies how often (in seconds) the Pushover servers will send the same notification to the user. (Min Value = 30), (*24)
setCallback, (*25)
The callback parameter must be a URL (HTTP or HTTPS) that is reachable from the Internet that our servers will call out to as soon as the notification has been acknowledged., (*26)
setTimestamp, (*27)
Messages are stored on the Pushover servers with a timestamp of when they were initially received through the API. This timestamp is sent to and shown on client devices, and messages are listed in order of these timestamps. In most cases, this default timestamp is acceptable. This is not for scheduling!, (*28)
getReceipt, (*29)
Gets the pushover receipt identifier to be used in later calls to the receipt API., (*30)
setDebug, (*31)
Enable this to receive detailed input and output info., (*32)
validateUser, (*33)
Validates the user using the API, (*34)
getSoundsList, (*35)
Gets an array of sounds that can be used with setSound(), (*36)
send, (*37)
Send the message to the API, (*38)
PHP class for the Pushover.net project