File tree 1 file changed +22
-0
lines changed
src/Symfony/Component/Notifier/Bridge/Mobyt
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,28 @@ where:
16
16
- ` FROM ` is the sender
17
17
- ` TYPE_QUALITY ` is the quality of your message: ` N ` for high, ` L ` for medium, ` LL ` for low (default: ` L ` )
18
18
19
+ Adding Options to a Message
20
+ ---------------------------
21
+
22
+ With a Mobyt Message, you can use the ` MobytOptions ` class to add
23
+ [ message options] ( https://gatewayapi.com/docs/apis/rest/ ) .
24
+
25
+ ``` php
26
+ use Symfony\Component\Notifier\Message\SmsMessage;
27
+ use Symfony\Component\Notifier\Bridge\Mobyt\MobytOptions;
28
+
29
+ $sms = new SmsMessage('+1411111111', 'My message');
30
+
31
+ $options = (new MobytOptions())
32
+ ->messageType(MobytOptions::MESSAGE_TYPE_QUALITY_HIGH)
33
+ // ...
34
+ ;
35
+
36
+ // Add the custom options to the sms message and send the message
37
+ $sms->options($options);
38
+
39
+ $texter->send($sms);
40
+ ```
19
41
Resources
20
42
---------
21
43
You can’t perform that action at this time.
0 commit comments