Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
917 stars 181 forks source link

New Message Types #388

Closed SecondeJK closed 1 year ago

SecondeJK commented 1 year ago

Description

WhatsApp Stickers are now available. To create one, you create a new StickerObject and pass it into a WhatsAppSticker message.

Viber now also has the action CTA which you can pass into a ViberText or ViberImage with ViberActionObject You can also now send ViberFile and ViberVideo

Motivation and Context

Evolution of Vonage APIs

How Has This Been Tested?

Added test for the new WhatsAppSticker object.

Types of changes

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

Merging #388 (b2e4711) into main (24a1c6d) will decrease coverage by 0.36%. The diff coverage is 56.97%.

@@             Coverage Diff              @@
##               main     #388      +/-   ##
============================================
- Coverage     78.26%   77.91%   -0.36%     
- Complexity     1817     1854      +37     
============================================
  Files           172      177       +5     
  Lines          4872     4948      +76     
============================================
+ Hits           3813     3855      +42     
- Misses         1059     1093      +34     
Impacted Files Coverage Δ
src/Messages/Channel/BaseMessage.php 73.07% <ø> (ø)
...Channel/Viber/MessageObjects/ViberActionObject.php 0.00% <0.00%> (ø)
...Messages/Channel/Viber/ViberServiceObjectTrait.php 45.45% <25.00%> (-11.69%) :arrow_down:
.../Channel/WhatsApp/MessageObjects/StickerObject.php 52.94% <52.94%> (ø)
src/Messages/Channel/Viber/ViberFile.php 72.72% <72.72%> (ø)
src/Messages/Channel/WhatsApp/WhatsAppSticker.php 75.00% <75.00%> (ø)
src/Messages/Channel/Viber/ViberImage.php 100.00% <100.00%> (ø)
src/Messages/Channel/Viber/ViberText.php 100.00% <100.00%> (ø)
src/Messages/Channel/Viber/ViberVideo.php 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more