Client::METHOD_GET, 'url' => $this->getConfig()->getApiUrl(sprintf('campaigns/%s/bounces', $campaignUid)), 'paramsGet' => [ 'page' => $page, 'per_page' => $perPage, ], 'enableCache' => true, ]); return $client->request(); } /** * Create a new bounce in the given campaign * * @param string $campaignUid * @param array $data * * @return Response * @throws ReflectionException * @throws Exception */ public function create(string $campaignUid, array $data): Response { $client = new Client([ 'method' => Client::METHOD_POST, 'url' => $this->getConfig()->getApiUrl(sprintf('campaigns/%s/bounces', (string)$campaignUid)), 'paramsPost' => $data, ]); return $client->request(); } }