Helper/Data.php
public function getApiEndPointFromConfig($websiteId)
    {
        if ($websiteId > 0) {
            $apiEndpoint = $this->getWebsiteConfig(
                \Dotdigitalgroup\Email\Helper\Config::PATH_FOR_API_ENDPOINT,
                $websiteId
            );
        } else {
            $apiEndpoint = $this->getWebsiteConfig(
                \Dotdigitalgroup\Email\Helper\Config::PATH_FOR_API_ENDPOINT,
                $websiteId,
                ScopeConfigInterface::SCOPE_TYPE_DEFAULT
            );
        }
        return $apiEndpoint;
    }
public function getApiEndPointFromConfig($websiteId)
    {
        if ($websiteId > 0) {
            $apiEndpoint = $this->getWebsiteConfig(
                \Dotdigitalgroup\Email\Helper\Config::PATH_FOR_API_ENDPOINT,
                $websiteId
            );
        } else {
            $apiEndpoint = $this->getWebsiteConfig(
                \Dotdigitalgroup\Email\Helper\Config::PATH_FOR_API_ENDPOINT,
                $websiteId,
                ScopeConfigInterface::SCOPE_TYPE_DEFAULT
            );
        }
        return $apiEndpoint;
    }
public function getApiEndPointFromConfig ( $ websiteId ) { if ( $ websiteId > 0 ) { $ apiEndpoint = $ this -> getWebsiteConfig ( \ Dotdigitalgroup \ Email \ Helper \ Config :: PATH_FOR_API_ENDPOINT , $ websiteId ) ; } else { $ apiEndpoint = $ this -> getWebsiteConfig ( \ Dotdigitalgroup \ Email \ Helper \ Config :: PATH_FOR_API_ENDPOINT , $ websiteId , ScopeConfigInterface :: SCOPE_TYPE_DEFAULT ) ; } return $ apiEndpoint ; }
Get api end point for given website

@param int $websiteId

@return string|boolean
Get api end point for given website