-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] smsapi-notifier fast
option to sending message with the highest priority
#45139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Notifier] smsapi-notifier fast
option to sending message with the highest priority
#45139
Conversation
src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog to the transport changelog file, thanks
src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a new feature it must target 6.1
branch
For the encoding one being considered as windows-1250 by default in the API, I would treat it as a bugfix, given that Symfony assumes UTF-8 by default in most places. |
You are right, but in this case this PR should be slit into two PRs 🤷♂️ |
@OskarStark indeed |
``` | ||
|
||
where: | ||
- `TOKEN` is your API Token (OAuth) | ||
- `FROM` is the sender name | ||
- `FAST` setting this parameter to "1" (default "0") will result in sending message with the highest priority which ensures the quickest possible time of delivery. Attention! Fast messages costs 50% more than normal message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest saying Fast messages cost more than normal messages
, without mentioning the actual increase of 50%. this way, this readme does not become outdated if they change their pricing to modify the ratio.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof You are right. Done.
@stof @OskarStark We can leave this PR as new feature to 6.1 and I can prepare separate PR only with bugfix for encoding. If you prefer. |
Please do so, we will merge the bugfix first then 👍🏻 thank you for your patience |
ea2a6fe
to
3583e0d
Compare
@OskarStark PR only with bugfix #45174. This PR I've rebased to 6.1 |
This PR was merged into the 5.3 branch. Discussion ---------- [Notifier] Use the UTF-8 encoding in smsapi-notifier | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | --- | License | MIT | Doc PR | --- THIS PR is splitted version of PR #45139 (see discussion) Currently smsapi-notifier does not specify encoding in payload request to provider api which generates such errors.  (sms message with invalid encoding) api.smsapi.pl use windows-1250 as a default value. I propose to set explicitly `utf-8`. After changes:  Commits ------- 7ad382d [Notifier] smsapi-notifier - correct encoding
PR title should be adjusted, the encoding was fixed in a different PR |
fast
optionfast
option to sending message with the highest priority
done |
Thank you @marphi. |
…ssage with the highest priority (marphi) This PR was squashed before being merged into the 6.1 branch. Discussion ---------- [Notifier] smsapi-notifier `fast` option to sending message with the highest priority | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | --- | License | MIT | Doc PR | --- I have used custom solution to send sms via smsapi for many years. Time to rewrite it to notifier component. Found 2 issues from my point of view: 1. THIS part is splitted into separate PR #45174. ~~Encoding. Currently `smsapi-notifier` does not specify `encoding` in payload request to provider api which generates such errors.  (sms message with invalid encoding) api.smsapi.pl use `windows-1250` as a default value. I propose to set explicitly `utf-8`. After changes:~~  2. I'm using smsapi to sending auth codes to my clients. In this case is really important to send SMS as fast as possible, `fast` options allow me to do this otherwise messages might have some delays. Commits ------- cd266a0 [Notifier] smsapi-notifier `fast` option to sending message with the highest priority
8e049a5
to
cd266a0
Compare
I have used custom solution to send sms via smsapi for many years. Time to rewrite it to notifier component. Found 2 issues from my point of view:
THIS part is splitted into separate PR [Notifier] Use the UTF-8 encoding in smsapi-notifier #45174.

Encoding. Currently

smsapi-notifier
does not specifyencoding
in payload request to provider api which generates such errors.(sms message with invalid encoding)
api.smsapi.pl use
windows-1250
as a default value. I propose to set explicitlyutf-8
.After changes:
I'm using smsapi to sending auth codes to my clients. In this case is really important to send SMS as fast as possible,
fast
options allow me to do this otherwise messages might have some delays.