Client::METHOD_GET, 'url' => $this->getConfig()->getApiUrl(sprintf('campaigns/%s/delivery-logs', $campaignUid)), 'paramsGet' => [ 'page' => $page, 'per_page' => $perPage, ], 'enableCache' => true, ]); return $client->request(); } /** * Get a delivery log based on its unique email message id * * @param string $emailMessageId * * @return Response * @throws ReflectionException * @throws Exception */ public function getDeliveryLogByEmailMessageId(string $emailMessageId): Response { $client = new Client([ 'method' => Client::METHOD_GET, 'url' => $this->getConfig()->getApiUrl(sprintf('campaigns/delivery-logs/email-message-id/%s', (string)$emailMessageId)), ]); return $client->request(); } }