Coder Social home page Coder Social logo

onpage_hub_api_cli_py's Introduction

==================
OnPage HUB API CLI
==================

OnPage HUB API CLI allows to send Pages to the OnPage Pagers from command line. For more information visit
http://www.onpage.com. To use this script you have to change ENTERPRISE_NAME, TOKEN and <recipients> Pager numbers to
real values.

CLI requires OnPage-HUB-API-Client module that can be installed using pip
```
pip install OnPage-HUB-API-Client
```
or  by executing

```
python setup.py install
```

Typical usage to send Page::

sendOnPage.py -e ENTERPRISE_NAME -t TOKEN -s subject_text โ€“r PAGER1,PAGER2 โ€“f SENDER

Available parameters in command line:
        -e|--enterprise_name - required parameter, has to be requested from [email protected]
        -t|--token token - required parameter, has to be requested from [email protected]
        -s|--subject subject - required parameter
        -r|--recipients recipient_1[,recipient_2[,...]] - required parameter, list of OnPage Pagers delimited by ','
        -f|--from sender_name - required parameter, sender name to be shown for recipient(s)
        [-m|--m message_body] - not required parameter
        [-l|--log INFO|NOTSET|DEBUG|ERROR|CRITICAL|FATAL] - not required parameter, default value is INFO. sendOnPage.log
            file will be created with log information. To disable log file use NOTSET value.


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.

As an option the '''onpage_configuration.cfg''' configuration file can be used instead of specifying enterprise name and
token values in a command line, but if these values are specified in the command line they will override the values from
the configuration file.

For more information contact [email protected]


onpage_hub_api_cli_py's People

Contributors

iriand avatar

Watchers

 avatar James Cloos avatar OnPage Corporation avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.