Releases: ker0x/messenger
Releases · ker0x/messenger
3.0.0
Changelog (since 2.1.1
)
Version 3.0.0
of the Messenger library is an enhancement of version 2.1.1
with major break changes.
- 3.0.0 (2018-10)
- Update API version to
v3.1
. - Add support for Persona API (Thanks to @misantron)
- Add support for the BUSINESS_PRODUCTIVITY message tag (Thanks to @atgg)
- Adding
$appVersion
as optional 4th argument in\Kerox\Messenger\Messenger::__construct()
with default value to constAPI_VERSION
. - Remove parameters
$notificationType
and$tag
for methodsmessage()
andaction
in\Kerox\Messenger\Api\Send()
. - Remove parameters
$notificationType
and$tag
for methodssend()
in\Kerox\Messenger\Api\Broadcast()
. - Add parameter
$options
for methodsmessage()
andaction
in\Kerox\Messenger\Api\Send()
. - Add parameter
$options
for methodssend()
in\Kerox\Messenger\Api\Broadcast()
. - Remove parameters
$notificationType
,$tag
and$messagingType
for method__construct()
in\Kerox\Messenger\Request\SendRequest()
. - Remove parameters
$notificationType
,$tag
for method__construct()
in\Kerox\Messenger\Request\BroadcastRequest()
. - Add parameter
$options
for method__construct()
in\Kerox\Messenger\Request\SendRequest()
. - Add parameter
$options
for method__construct()
in\Kerox\Messenger\Request\BroadcastRequest()
. - Move constants
MESSAGING_TYPE_RESPONSE
,MESSAGING_TYPE_UPDATE
,MESSAGING_TYPE_MESSAGE_TAG
andMESSAGING_TYPE_NON_PROMOTIONAL_SUBSCRIPTION
from\Kerox\Messenger\Request\SendRequest()
to\Kerox\Messenger\SendInterface
- Method
addQuickReply()
in\Kerox\Messenger\Model\Message()
will throw an exception if there is already too many quick replies. - Parameters
$ref
,$source
and$type
in\Kerox\Messenger\Model\Callback\Referral()
can now returnnull
. - Add parameter
$sharable
in\Kerox\Messenger\Model\Message\Attachment\Template\ButtonTemplate()
. - Increase limit to 640 characters for
$text
in\Kerox\Messenger\Model\Message\Attachment\Template\ButtonTemplate()
. (Thanks to @mferrara) - Improve tests
- Refactor code
- Update API version to
2.1.1
2.1.0
2.0.2
1.4.1
2.0.1
2.0.0
- bump minimum PHP version to
7.1
- refactor code to be
7.1
compliant - update API version to
2.11
- rename all template class with Template suffix
- add method toArray for all class implementing \JsonSerializable interface
- update method jsonSerialize
- add static method create() for classes inside namespace
Kerox\Messenger\Model\Message
,Kerox\Messenger\Model\Common
,Kerox\Messenger\Model\ProfileSettings
,Kerox\Messenger\Model\Data
- add template
MediaTemplate
- add element
MediaElement
- refactor API Insights
- add API for NLP
- add API for Broadcast
1.4.0
- add ReferralEvent class (thanks to @sherryt400)
- update Travis configuration
- update PHP CS fixer configuration