Skip to content

Commit f3c4f7c

Browse files
committed
Add: testSendCampaign
1 parent 4e4b094 commit f3c4f7c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Endpoint/CampaignClient.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,17 @@ public function resendCampaign(int $id, array $listIds): void
145145
{
146146
$this->client->post('campaigns/' . $id . '/resend', ['list_ids' => $listIds]);
147147
}
148+
149+
/**
150+
* test send campaign to specified lists subscribers
151+
*
152+
* @param int $id The campaign ID
153+
* @param array $emails The target subscribers emails
154+
* @throws NotFoundException If the campaign is not found
155+
* @throws ApiException If an API error occurs
156+
*/
157+
public function testSendCampaign(int $id, array $emails): void
158+
{
159+
$this->client->post('campaigns/' . $id . '/test-send', ['emails' => $emails]);
160+
}
148161
}

0 commit comments

Comments
 (0)