mirror of
https://github.com/caronc/apprise.git
synced 2025-06-26 20:51:22 +02:00
Updated Notify_onesignal (markdown)
parent
424839ca29
commit
f2990e53e2
@ -62,3 +62,40 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
|||||||
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
onesignal://abc123@a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty/3456-2345-a3ef?subtitle=A%20Different%20Subtitle
|
onesignal://abc123@a6k4ABnck26hDh8AA3EDHoOVdDEUlw3nty/3456-2345-a3ef?subtitle=A%20Different%20Subtitle
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Custom Data (Templates)
|
||||||
|
Making use of the `:` on the Apprise URL allows you to alter and add to the payload of your onesignal post.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# As an example:
|
||||||
|
apprise -vv -b "Test Message Body" \
|
||||||
|
"onesignal://credentials/?:key1=value1"
|
||||||
|
```
|
||||||
|
|
||||||
|
The above would additional these assignments into the payload as `custom_data':
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
... previous payload elements... and then:
|
||||||
|
"custom_data": {"key1": "value1"}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Data
|
||||||
|
Making use of the `+` on the Apprise URL allows you to alter and add to the payload of your onesignal post.
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# As an example:
|
||||||
|
apprise -vv -b "Test Message Body" \
|
||||||
|
"onesignal://credentials/?+key1=value1"
|
||||||
|
```
|
||||||
|
|
||||||
|
The above would additional these assignments into the payload as `data':
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
... previous payload elements... and then:
|
||||||
|
"data": {"key1": "value1"}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user