Block/Customer/Account/Books.php
private function _getApiClient()
    {
        if (empty($this->client)) {
            $website = $this->getCustomer()->getStore()->getWebsite();
            $client = $this->helper->getWebsiteApiClient($website);
            $this->client = $client;
        }

        return $this->client;
    }
private function _getApiClient()
    {
        if (empty($this->client)) {
            $website = $this->getCustomer()->getStore()->getWebsite();
            $client = $this->helper->getWebsiteApiClient($website);
            $this->client = $client;
        }

        return $this->client;
    }
private function _getApiClient ( ) { if ( empty ( $ this -> client ) ) { $ website = $ this -> getCustomer ( ) -> getStore ( ) -> getWebsite ( ) ; $ client = $ this -> helper -> getWebsiteApiClient ( $ website ) ; $ this -> client = $ client ; } return $ this -> client ; }
Get api client.

@return \Dotdigitalgroup\Email\Model\Apiconnector\Client
Get api client .