connection->requestAndParse( 'GET', 'subscriber' ); } /** * @throws BaseException|GuzzleException */ public function get(string $subscriberId): SubscriberEntity { $data = $this->connection->requestAndParse( 'GET', 'subscriber/'.urlencode(trim($subscriberId)) ); return new SubscriberEntity($data); } /** * @throws BaseException|GuzzleException */ public function search(string $mailAddress): string { return current( $this->connection->requestAndParse( 'POST', 'subscriber/search', [ RequestOptions::FORM_PARAMS => [ 'email' => trim($mailAddress) ] ] ) ); } }