Send Page to pager using OnPage HUB API
Project description
=====================
OnPage HUB API CLIENT
=====================
OnPage HUB API CLIENT allows to send Pages to the OnPage Pagers. For more information visit
http://www.onpage.com. 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:
https://github.com/onsetinc/onpage_hub_api_cli_py
Sample of usage your own Python script to send Page from your own Python script:
```python
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()
# CHANGE THIS WITH UNIQUE MESSAGE ID
message.messageId = randint(200, 10000)
message.subject = 'YOUR_SUBJECT_HERE'
message.body = 'YOUR_MESSAGE_HERE'
message.sender = 'SENDER_EMAIL_ADDRESS'
message.recipients = ['RECIPIENT_PAGER_NUMBER_1', 'RECIPIENT_PAGER_NUMBER_2', ..., 'RECIPIENT_PAGER_NUMBER_N']
try:
hubApi = OnPageHubApi('https://nps.onpage.com/hub-api?wsdl', '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 support@onsettechnology.com
OnPage HUB API CLIENT
=====================
OnPage HUB API CLIENT allows to send Pages to the OnPage Pagers. For more information visit
http://www.onpage.com. 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:
https://github.com/onsetinc/onpage_hub_api_cli_py
Sample of usage your own Python script to send Page from your own Python script:
```python
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()
# CHANGE THIS WITH UNIQUE MESSAGE ID
message.messageId = randint(200, 10000)
message.subject = 'YOUR_SUBJECT_HERE'
message.body = 'YOUR_MESSAGE_HERE'
message.sender = 'SENDER_EMAIL_ADDRESS'
message.recipients = ['RECIPIENT_PAGER_NUMBER_1', 'RECIPIENT_PAGER_NUMBER_2', ..., 'RECIPIENT_PAGER_NUMBER_N']
try:
hubApi = OnPageHubApi('https://nps.onpage.com/hub-api?wsdl', '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 support@onsettechnology.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
OnPage HUB API Client-0.1.1.win32.exe
(202.8 kB
view hashes)
Close
Hashes for OnPage_HUB_API_Client-0.1.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efbcc5c3485e348ed8eff4ba8e4045014ca5e19e27c4248f58e202617df5cac |
|
MD5 | a6a36cb52ef824bea1134f9b86f120d1 |
|
BLAKE2b-256 | 4bccbfdc3a083f2868ae659a698c63d251edf46beb63d5315372f8d9ff381970 |
Close
Hashes for OnPage_HUB_API_Client-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4708ff4f5bff009d983411d47344c7d41d1977aa5ee24cb0effbd79d7bc087b |
|
MD5 | 96818ae95c479235a22d5fad7730e8ee |
|
BLAKE2b-256 | 151a9f0c8faebae04e78c734e6a0e60650cf0148b1723d0970ef53b97fa209bb |
Close
Hashes for OnPage HUB API Client-0.1.1.win32.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863889b4d960b994a204869a04123c8a7ab0c13d2b99c6de4431469b076f76c4 |
|
MD5 | fc16d4c7bff2fa628ad1fd642d6647d9 |
|
BLAKE2b-256 | 470f0d77b1ed11a2900ac56a8a0090777d63dc54a87c7c0d33ca0aa3331293c2 |