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

Apprise API FORM based Attachment Support Added #877

Merged
merged 1 commit into from
May 15, 2023

Conversation

caronc
Copy link
Owner

@caronc caronc commented May 15, 2023

Description:

Related issue (if applicable): #870 and apprise-api/39

FORM based Apprise API support (in addition to JSON that was already put in place in PR #873.

You can set which mode to use (FORM being the default as it is the most light weight), by specifying ?method= on the Apprise API URL.

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@apprise-attachment-support-pt2

# Test out the changes with the following command:
apprise -t "Test Title" -b "Test Message" \
   "apprise://host/config_id/"

@codecov-commenter
Copy link

codecov-commenter commented May 15, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1e30be3) 100.00% compared to head (c340293) 100.00%.

❗ 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      #877   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          118       118           
  Lines        15572     15651   +79     
  Branches      3173      3200   +27     
=========================================
+ Hits         15572     15651   +79     
Impacted Files Coverage Δ
apprise/plugins/NotifyAppriseAPI.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

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

@caronc caronc merged commit 80ae722 into master May 15, 2023
16 checks passed
@caronc caronc deleted the apprise-attachment-support-pt2 branch July 1, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants