Releases: infobip/infobip-api-php-client
Releases · infobip/infobip-api-php-client
6.2.1
[ 6.2.1 ] - 2025-01-24
Added
- An option to define the
messageIdfor all channels in Messages API failover flow. - New voices and languages for Calls API.
Fixed
- Serialization of
CallsDtmfOptions,CallsCollectOptionsandCallsCallApiOptionsin IVR scenario scripts. - Issue #67: Fetching WhatsApp media metadata methods now return an array that contains header values provided by the API.
This version provides an additional fix that fully resolves the issue.
Changed
- Field
fromis no longer required when creating outbound calls. - Form parameter processing code is refactored and removed from the API methods where it is not needed.
Removed
- A no longer required
DISCONNECTEDcall state.
6.2.0
[ 6.2.0 ] - 2025-01-20
Added
- Support for Calls Configuration.
- Additional validation for WhatsApp
senderparameters. - Support for Email IP Management instead of set of deprecated Email IP endpoints.
Check Email API documentation for additional details (BREAKING). - Footer support for Messages API Message. For additional details check Messages API documentation.
- Add calendar event button support for Messages API Message. For additional details check Messages API documentation.
- Card options for Carousel and Rich Link body types in Messages API Message. For additional details check Messages API documentation.
- Support for OTP templates for Viber messages. For additional details check Viber API documentation.
- Support for
telemarketerIdin India DLT options when sending failover SMS messages through Viber API. - Support for cache duration when playing audio files by providing the URL to the audio file in Calls API.
- New Call state:
DISCONNECTED. - Support for downloading Voice IVR recorded files. Check the Voice API documentation for additional details.
Changed
- Email Suppression type enum models are now consolidated. Use
EmailSuppressionTypeandEmailAddSuppressionTypeinstead ofEmailAddDeleteSuppressionTypeandInfobip/Model/EmailGetSuppressionType(BREAKING). - Don't allow empty text when sending failover SMS messages through Viber API.
- Explicitly allow enum denormalization only for string types.
- Extend
OneOfInterfaceNormalizerwith enum support. - Adjusted Call Voice models, so both
CallsVoiceandCallsSynthesisVoiceare used in the correct context (BREAKING). - Adjusted Call Language models, so both
CallsLanguageandCallTranscriptionLanguagesare used in the correct context (BREAKING).
Fixed
- Issue #67: Fetching WhatsApp media metadata methods now return an array that contains header values provided by the API.
Check the API Documentation and the ReceiveWhatsAppApiTest for additional details. EmailSuppressionInfomodel to correctly specifyDateTimetype forcreatedDatefield.- Invalid type hints for map-like properties.
- Number Masking:
- DELETE requests and error processing
- Content schema when uploading audio files
- UTC date-time deserialization in setup response model.
- Interactive Voice Response:
lastUsageDatefiled processing (yyyy-MM-ddformat)- Adjusted models in script processing
6.1.0
[ 6.1.0 ] - 2024-12-16
Added
- Support for Infobip Moments.
Changed
- Removed no longer supported 50 business-initiated conversations messaging tear limit for WhatsApp senders.
- Added
createdAtandlastUpdatedAtfields to WhatsApp Template response models. - Added new Calls error code type:
MACHINE_DETECTED. CallRoutingWebRtcEndpointnow allows using defaulttovalue used in inbound call as an identity.- Refactored a part of Calls API tests.
Fixed
- IVR scenario action scripts types.
6.0.0
[ 6.0.0 ] - 2024-12-09
In this release we updated the library to use the latest version of the Infobip API. We also updated the library to use the latest version of the Symfony components. Minimum Symfony
version required is 7.0.
🎉 NEW Major Version of infobip-api-php-client.
Added
- Support for Infobip Messages API.
- Most recent Infobip Voice API feature set.
- Most recent Infobip SMS API feature set.
- Most recent Infobip 2FA API feature set.
- Most recent Infobip MMS API feature set.
- Most recent Infobip Email API feature set.
- Most recent Infobip WhatsApp API feature set.
- Most recent Infobip Viber API feature set.
- Most recent Infobip WebRTC API feature set.
- PHP CS Fixer and PHPStan dev dependencies for code quality checks.
- Additional set of integration tests.
Changed
Dependencies
- Require PHP version 8.3 or higher.
- Bumped Symfony components to the latest major version.
Model changes
- Migration to the new SMS v3 API. Check the [README.md][readme] for updated examples.
- Introduced the new SmsMessage class to replace
SmsTextualMessageandSmsBinaryMessage, providing a unified structure for SMS messaging. - Added a content field within
SmsMessageto define the message content.
This supports both textual and binary messages, which can be created using SmsTextContent or SmsBinaryContent, respectively. - Unified request classes by replacing
SmsAdvancedTextualRequestandSmsAdvancedBinaryRequestwith the new SmsRequest class. - Consolidated sending functions: use
sendSmsMessagesinstead of thesendSmsMessageandsendBinarySmsMessagefunctions.
- Introduced the new SmsMessage class to replace
- Across all Call models, the
applicationIdfield has been removed and replaced with theplatformfield, as encapsulates platform fields and reflects the current state of the endpoint.
In addition to that, a new requiredcallsConfigurationIdfield has been added. - Removed delivery time window configuration classes (
SmsDeliveryTimeWindow,MmsDeliveryTimeWindow,ViberDeliveryTimeWindow,CallRoutingAllowedTimeWindow,CallsDeliveryTimeWindow,SmsDeliveryTimeWindow,CallsTimeWindow) in favor of a unified class: DeliveryTimeWindow - Removed delivery time configuration classes (
SmsDeliveryTimeFrom,SmsDeliveryTimeTo,MmsDeliveryTime,ViberDeliveryTime,CallsTimeWindowPoint,WebRtcTimeOfDay,CallRoutingAllowedTimeFrom,CallRoutingAllowedTimeTo,WebRtcTimeOfDay) in favor of a unified class: DeliveryTime - Removed URL options configuration classes (
MessagesApiUrlOptions,ViberUrlOptions,WhatsAppUrlOptions) in favor of a unified class: UrlOptions - Removed CPaaS X platform configuration classes (
ViberPlatform,MessagesApiPlatform) in favor of a unified class: Platform - Removed delivery day enumeration classes (
SmsDeliveryDay,MmsDeliveryDay,CallsDeliveryDay,CallRoutingAllowedDay) in favor of a unified class: DeliveryDay - Removed validity period configuration classes (
ViberValidityPeriod,MessagesApiValidityPeriod) in favor of a unified class: ValidityPeriod - Removed validity period time unit enumeration classes (
ViberValidityPeriodTimeUnit,MessagesApiValidityPeriodTimeUnit) in favor of a unified class: ValidityPeriodTimeUnit - Removed
ModelInterfacesince it's no longer needed and not used in serialization anymore.
Fixed
- Sending Email to multiple recipients.
5.1.5
This release (git tag) didn't result in a package version.