Helper/Data.php
public function getApiEndPointFromApi($client)
    {
        $accountInfo = $client->getAccountInfo();
        $apiEndpoint = false;
        if (is_object($accountInfo) && !isset($accountInfo->message)) {
            //save endpoint for account
            foreach ($accountInfo->properties as $property) {
                if ($property->name == 'ApiEndpoint' && !empty($property->value)) {
                    $apiEndpoint = $property->value;
                    break;
                }
            }
        }
        return $apiEndpoint;
    }
public function getApiEndPointFromApi($client)
    {
        $accountInfo = $client->getAccountInfo();
        $apiEndpoint = false;
        if (is_object($accountInfo) && !isset($accountInfo->message)) {
            //save endpoint for account
            foreach ($accountInfo->properties as $property) {
                if ($property->name == 'ApiEndpoint' && !empty($property->value)) {
                    $apiEndpoint = $property->value;
                    break;
                }
            }
        }
        return $apiEndpoint;
    }
public function getApiEndPointFromApi ( $ client ) { $ accountInfo = $ client -> getAccountInfo ( ) ; $ apiEndpoint = false ; if ( is_object ( $ accountInfo ) && ! isset ( $ accountInfo -> message ) ) { //save endpoint for account foreach ( $ accountInfo -> properties as $ property ) { if ( $ property -> name == 'ApiEndpoint' && ! empty ( $ property -> value ) ) { $ apiEndpoint = $ property -> value ; break ; } } } return $ apiEndpoint ; }
Get api end point from api

@param \Dotdigitalgroup\Email\Model\Apiconnector\Client $client

@return string|boolean
Get api end point from api