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
{{ message }}
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
Add your HipChat Account Token and optionally the default room and Hipchat API server's base url to your `config/services.php`:
@@ -91,6 +92,7 @@ class UserRegistered extends Notification
91
92
```
92
93
93
94
### Sending a room notification with a card
95
+
94
96
Read more about HipChat notification cards [here](https://developer.atlassian.com/hipchat/guide/sending-messages#SendingMessages-UsingCards).
95
97
96
98
```php
@@ -168,6 +170,7 @@ public function toHipChat($notifiable)
168
170
### Available methods
169
171
170
172
#### `HipChatMessage`
173
+
171
174
-`create()`: Creates a new `HipChatMessage` instance.
172
175
-`room()`: Sets the id or name of the HipChat room to send the notification to.
173
176
-`from()`: Sets the optional label to be shown in addition to the sender's name.
@@ -181,6 +184,7 @@ public function toHipChat($notifiable)
181
184
-`error()`: Sets notification level to `info` and color to `MessageColors::RED`.
182
185
183
186
#### `Card`
187
+
184
188
-`create()`: Creates a new `Card` instance.
185
189
-`title()`: Sets the title of the card.
186
190
-`id()`: Sets the id of the card.
@@ -195,6 +199,7 @@ public function toHipChat($notifiable)
195
199
-`addAttribute()`: Adds a `CardAttribute` to the card.
196
200
197
201
#### `CardAttribute`
202
+
198
203
-`create()`: Creates a new `CardAttribute` instance.
199
204
-`value()`: Sets the textual value of the attribute.
200
205
-`label()`: Sets the label of the attribute.
@@ -203,6 +208,7 @@ public function toHipChat($notifiable)
203
208
-`icon()`: Sets the icon of the attribute.
204
209
205
210
#### `HipChatFile`
211
+
206
212
-`create()`: Creates a new `HipChatFile` instance.
207
213
-`room()`: Sets the id or name of the HipChat room to share the file in.
208
214
-`path()`: Sets the `fileContent` to the resource of the existing file and tries to detect and set the `fileName` and `fileType` if they weren't explicitely set.
0 commit comments