8000 bug #49488 [Mailer] Update Infobip API transport (ndousson) · symfony/symfony@6bd3af0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6bd3af0

Browse files
bug #49488 [Mailer] Update Infobip API transport (ndousson)
This PR was merged into the 6.2 branch. Discussion ---------- [Mailer] Update Infobip API transport | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A # 📍 Context Infobip send an email to their customers that do not use the latest API release: **V3** They inform that everything is backward compatible and can be easily upgraded without any changes. # 🛠️ Changes This PR change the version used from the V2 to the V3. Commits ------- 18eb6e8 Update Infobip API transport to use the API V3
2 parents 0a9a264 + 18eb6e8 commit 6bd3af0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Mailer/Bridge/Infobip/Tests/Transport/InfobipApiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testInfobipShouldBeCalledWithTheRightMethodAndUrlAndHeaders()
7070
$this->transport->send($email);
7171

7272
$this->assertSame('POST', $this->response->getRequestMethod());
73-
$this->assertSame('https://99999.api.infobip.com/email/2/send', $this->response->getRequestUrl());
73+
$this->assertSame('https://99999.api.infobip.com/email/3/send', $this->response->getRequestUrl());
7474
$options = $this->response->getRequestOptions();
7575
$this->arrayHasKey('headers');
7676
$this->assertCount(4, $options['headers']);

src/Symfony/Component/Mailer/Bridge/Infobip/Transport/InfobipApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
final class InfobipApiTransport extends AbstractApiTransport
3333
{
34-
private const API_VERSION = '2';
34+
private const API_VERSION = '3';
3535

3636
private string $key;
3737

0 commit comments

Comments
 (0)
0