Helper/Data.php
public function isEnabled($website = 0)
    {
        $website = $this->storeManager->getWebsite($website);
        $enabled = $this->scopeConfig->isSetFlag(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_API_ENABLED,
            \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
            $website
        );
        $apiUsername = $this->getApiUsername($website);
        $apiPassword = $this->getApiPassword($website);
        if (! $apiUsername || ! $apiPassword || ! $enabled) {
            return false;
        }

        return true;
    }
public function isEnabled($website = 0)
    {
        $website = $this->storeManager->getWebsite($website);
        $enabled = $this->scopeConfig->isSetFlag(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_API_ENABLED,
            \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
            $website
        );
        $apiUsername = $this->getApiUsername($website);
        $apiPassword = $this->getApiPassword($website);
        if (! $apiUsername || ! $apiPassword || ! $enabled) {
            return false;
        }

        return true;
    }
public function isEnabled ( $ website = 0 ) { $ website = $ this -> storeManager -> getWebsite ( $ website ) ; $ enabled = $ this -> scopeConfig -> isSetFlag ( \ Dotdigitalgroup \ Email \ Helper \ Config :: XML_PATH_CONNECTOR_API_ENABLED , \ Magento \ Store \ Model \ ScopeInterface :: SCOPE_WEBSITE , $ website ) ; $ apiUsername = $ this -> getApiUsername ( $ website ) ; $ apiPassword = $ this -> getApiPassword ( $ website ) ; if ( ! $ apiUsername || ! $ apiPassword || ! $ enabled ) { return false ; } return true ; }
Get api creadentials enabled.

@param int $website

@return bool
Get api creadentials enabled .