Learn R Programming

pushoverr (version 0.1.1)

pushover: Send a message using Pushover

Description

pushover sends a message (push notification) to a user or group. Messages can be given different priorities, play different sounds, or require acknowledgments. A unique request token is returned. The pushover_normal, pushover_quiet, pushover_high, and pushover_emergency functions send messages with those priorities.

Usage

pushover(message, ...)

Arguments

message
The message to be sent (max. 512 characters)
...
Any additional message parameters (see PushoverMessage-class)

Value

  • A list containing a Pushover request token and a receipt token for emergency priority messages

Examples

Run this code
# Send a pushover message
pushover(message='Hello World!', token='KzGDORePK8gMaC0QOYAMyEEuzJnyUi',
         user='uQiRzpo4DXghDmr9QzzfQu27cmVRsG')

# User keys and app tokens can be set ahead of time
set_pushover_user('KAWXTswy4cekx6vZbHBKbCKk1c1fdf')
set_pushover_app('KzGDORePK8gMaC0QOYAMyEEuzJnyUi')
pushover(message='so much less work!')

# Send a message with high priority and a title
pushover_high(message='The sky is falling', title='Alert')

# Send an emergency message. Emergency messages will be re-sent until they
# are acknowledged (in this case, every 60 seconds)
pushover_emergency(message='TAXES ARE DUE AT MIDNIGHT!', retry=60)

# Send a quiet message
pushover_quiet(message='Pssst. Walk the dog when you wake up')

Run the code above in your browser using DataLab