You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -92,50 +95,50 @@ public function routeNotificationForPushover() {
92
95
}
93
96
```
94
97
95
-
If you want to (dynamically) overrule the application token from the services config, e.g. because each user holds their own application token, return a `PushoverReceiver` object like this:
98
+
If you want to (dynamically) overrule the application token from the services config, e.g. because each user holds their
99
+
own application token, return a `PushoverReceiver` object like this:
Please note that only the message content is mandatory, all other methods are optional. The message content can be set via `content('')`, via the create method `PushoverMessage::create('')` or via the constructor `new PushoverMessage('')`.
114
-
115
-
Method | Description
116
-
-| -
117
-
`content($message)` | Accepts a string value for the message text.
118
-
`html()` | Sets the message type to [HTML](https://pushover.net/api#html).
119
-
`monospace()` | Sets the message type to monospace.
120
-
`plain()` | Sets the message type to plain text, this is the default.
121
-
`title($title)` | Accepts a string value for the message title.
122
-
`time($timestamp)` | Accepts either a `Carbon` object or a UNIX timestamp.
123
-
`url($url[, $title])` | Accepts a string value for a [supplementary url](https://pushover.net/api#urls) and an optional string value for the title of the url.
124
-
`sound($sound)` | Accepts a string value for the [notification sound](https://pushover.net/api#sounds).
125
-
`image($image)` | Accepts a string value for the image location (either full or relative server path or a URL). If there is any error with the file (too big, not an image) it will silently send the message without the image attachment.
126
-
`priority($priority[, $retryTimeout, $expireAfter])` | Accepts an integer value for the priority and, when the priority is set to emergency, also an integer value for the retry timeout and expiry time (in seconds). Priority values are available as constants | `PushoverMessage::LOWEST_PRIORITY`, `PushoverMessage::LOW_PRIORITY`, `PushoverMessage::NORMAL_PRIORITY` and `PushoverMessage::EMERGENCY_PRIORITY`.
127
-
`lowestPriority()` | Sets the priority to the lowest priority.
128
-
`lowPriority()` | Sets the priority to low.
129
-
`normalPriority()` | Sets the priority to normal.
130
-
`highPriority()` | Sets the priority to high.
131
-
`emergencyPriority($retryTimeout, $expireAfter)` | Sets the priority to emergency and accepts integer values for the retry timeout and expiry time (in seconds).
117
+
118
+
| Method | Description |
119
+
|--------|-------------|
120
+
|`content($message)`| Accepts a string value for the message text. |
121
+
|`html()`| Sets the message type to [HTML](https://pushover.net/api#html). |
122
+
|`monospace()`| Sets the message type to monospace. |
123
+
|`plain()`| Sets the message type to plain text, this is the default. |
124
+
|`title($title)`| Accepts a string value for the message title. |
125
+
|`time($timestamp)`| Accepts either a `Carbon` object or a UNIX timestamp. |
126
+
|`url($url[, $title])`| Accepts a string value for a [supplementary url](https://pushover.net/api#urls) and an optional string value for the title of the url. |
127
+
|`sound($sound)`| Accepts a string value for the [notification sound](https://pushover.net/api#sounds). |
128
+
|`image($image)`| Accepts a string value for the image location (either full or relative server path or a URL). If there is any error with the file (too big, not an image) it will silently send the message without the image attachment. |
129
+
|`priority($priority[, $retryTimeout, $expireAfter])`| Accepts an integer value for the priority and, when the priority is set to emergency, also an integer value for the retry timeout and expiry time (in seconds). Priority values are available as constants |`PushoverMessage::LOWEST_PRIORITY`, `PushoverMessage::LOW_PRIORITY`, `PushoverMessage::NORMAL_PRIORITY` and `PushoverMessage::EMERGENCY_PRIORITY`. |
130
+
|`lowestPriority()`| Sets the priority to the lowest priority. |
131
+
|`lowPriority()`| Sets the priority to low. |
132
+
|`normalPriority()`| Sets the priority to normal. |
133
+
|`highPriority()`| Sets the priority to high. |
134
+
|`emergencyPriority($retryTimeout, $expireAfter)`| Sets the priority to emergency and accepts integer values for the retry timeout and expiry time (in seconds). |
132
135
133
136
## Changelog
134
137
135
138
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
0 commit comments