Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Related issue (if applicable): #1137
SendPulse Notifications
Account Setup
Once you have an account and access to your dashboard. You will need to ensure you acquire your Client ID and Client Secret in order to construct the Apprise URLs
Syntax
Valid syntaxes are as follows:
{schema}://{user}@{host}/{client_id}/{client_secret}
{schema}://{user}@{host}/{client_id}/{client_secret}/{to_email}
{schema}://{user}@{host}/{client_id}/{client_secret}/{to_email1}/{to_email2}/{to_email3}
Template support is also supported as well, You just need to specify the integer assigned to it as part of the URL:
{schema}://{user}@{host}/{client_id}/{client_secret}/:{to_email}?template={temlate_int}
If you want to take advantage of the
dynamic_template_data
variables, just create arguments prefixed with a plus (+); for example:sendpulse://{user}@{host}/{client_id}/{client_secret}/{to_email}?template={template_int}&+{sub1}=value&+{sub2}=value2
Parameter Breakdown
host
, it constructs the email address you have configured with your SendPulse account.user
, it constructs the email address you have configured with your SendPulse account.Dynamic Template Data
Apprise has template support for SendPulse. Just define the
?template=
and the optional arguments you want to set. You can identify and set these variables using Apprise by simply sticking a plus (+) in front of any parameter you specify on your URL string.Consider the following template:
1234
An Apprise URL might look like:
sendpulse://user@example.com?template=1234&+what=templates&+app=Apprise
Example
Send a SendPulse notification:
New Service Completion Status
%global common_description
Checklist
flake8
)Testing
Anyone can help test this source code as follows: