# Set the Pushover user account to use
set_pushover_app('KzGDORePK8gMaC0QOYAMyEEuzJnyUi')
# Determine whether the Pushover user account has been set
if(pushover_app.isset())
{
cat(paste('The Pushover app token has been set to', get_pushover_app()))
}
# Set the Pushover user account to use
set_pushover_user('uQiRzpo4DXghDmr9QzzfQu27cmVRsG')
# Determine whether the Pushover user account has been set
if(pushover_user.isset())
{
cat(paste('Pushover user has been set to', get_pushover_user()))
}
When both the app token and user account have been set, we can send a
message without providing either of them:
pushover('this took so much less typing!')
pushover_high('and again!')
# Forget about the current Pushover user
unset_pushover_user()
Run the code above in your browser using DataLab