Skip to main content

Send Page to pager using OnPage HUB API

Project description


OnPage HUB API CLIENT allows to send Pages to the OnPage Pagers. For more information visit To use this script you have to change ENTERPRISE_NAME, TOKEN and <RECIPIENT_PAGER_NUMBER> Pager
numbers to real values.

You can send Page using your own Python script or using CLI script from here:

Sample of usage your own Python script to send Page from your own Python script:

from random import randint
import sys

from onpage_hub_api_client.Message import Message
from onpage_hub_api_client.OnPageHubApi import OnPageHubApi

if __name__ == "__main__":

message = Message()

message.messageId = randint(200, 10000)

message.subject = 'YOUR_SUBJECT_HERE'
message.body = 'YOUR_MESSAGE_HERE'
message.sender = 'SENDER_EMAIL_ADDRESS'

hubApi = OnPageHubApi('', 'ENTERPRISE_NAME', 'TOKEN')

result = hubApi.sendPage([message])

print result

except Exception as ex:
type, value, traceback = sys.exc_info()
error_description = '%s\n%s\n%s\n%s' % (type, value, traceback, ex)
print error_description

If everything is configured right the output of the script has to be something like:

Message 170315170855-8836 accepted by OnPage

and recipients will receive it immediately.

For more information contact

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distributions

OnPage_HUB_API_Client-0.1.1-py2.7.egg (7.6 kB view hashes)

Uploaded 2 7

OnPage HUB API Client-0.1.1.win32.exe (202.8 kB view hashes)

Uploaded any

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page