Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Octopush Support #622

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added Octopush Support #622

wants to merge 2 commits into from

Conversation

caronc
Copy link
Owner

@caronc caronc commented Jul 3, 2022

Description:

Related issue (if applicable): n/a

Added Octopush support

You need to have an account with Octopush and generate/access your API key.

Syntax

Valid syntax is as follows:

  • octopush://{api_login}/{api_key}/{target_phone_no}
  • octopush://{sender}:{api_login}/{api_key}/{target_phone_no}
  • octopush://{api_login}/{api_key}/{target_phone_no1}/{target_phone_no2}/{target_phone_noN}
  • octopush://{sender}:{api_login}/{api_key}/{target_phone_no1}/{target_phone_no2}/{target_phone_noN}

Parameter Breakdown

Variable Required Description
api_login Yes This email address associated with your Octopush account
api_key Yes The API Key associated with your setup
sender No Provide the sender of the notification
type No Provide the message cost type. Possible values are sms_premium (which is the default if nothing is specified) or sms_low_cost
purpose No Provide the message/notification purpose; can be either alert (which is the default if not specified) or wholesale.
replies No Set to yes for getting back recipient replies; by default this is set to no
batch No Octopush allows support for a batch mode. If you identify more then one phone number, you can send all of the phone numbers you identify on the URL in a single shot instead of the normal Apprise approach (which sends them one by one). Enabling batch mode has both it's pro's and cons. By default batch mode is disabled.

New Service Completion Status

  • apprise/plugins/NotifyOctopush.py
  • KEYWORDS
    • add new service into this file (alphabetically).
  • README.md
    • add entry for new service to table (as a quick reference)
  • packaging/redhat/python-apprise.spec
    • add new service into the %global common_description

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • No lint errors (use flake8)
  • 100% test coverage

Testing

Anyone can help test this source code as follows:

# Create a virtual environment to work in as follows:
python3 -m venv apprise

# Change into our new directory
cd apprise

# Activate our virtual environment
source bin/activate

# Install the branch
pip install git+https://github.com/caronc/apprise.git@octopush-support

# Test out the changes with the following command:
apprise -t "Test Title" -b "Test Message" \
  "octopush://api_login/api_key/target_phoneno"

@caronc
Copy link
Owner Author

caronc commented Jul 3, 2022

This is ready to go; i just need someone who has an Octopush account to test this out for me! if they could let me know; that would be fantastic! 🚀

@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2022

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (276da2e) 99.98% compared to head (9c83973) 99.98%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff            @@
##           master     #622    +/-   ##
========================================
  Coverage   99.98%   99.98%            
========================================
  Files         118      119     +1     
  Lines       15693    15829   +136     
  Branches     3207     3236    +29     
========================================
+ Hits        15691    15827   +136     
  Misses          1        1            
  Partials        1        1            
Impacted Files Coverage Δ
apprise/plugins/NotifyOctopush.py 100.00% <100.00%> (ø)
apprise/plugins/NotifyPushover.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants