src/Mailjet/Client.php
private function buildURL($resource, $action, $id, $actionid)
    {
        $path = 'REST';
        if (in_array($resource, $this->smsResources)) {
            $path = '';
        } elseif (in_array($action, $this->dataAction)) {
            $path = 'DATA';
        }

        $arrayFilter = [$path, $resource, $id, $action, $actionid];
        return $this->getApiUrl() . join('/', array_filter($arrayFilter));
    }
private function buildURL($resource, $action, $id, $actionid)
    {
        $path = 'REST';
        if (in_array($resource, $this->smsResources)) {
            $path = '';
        } elseif (in_array($action, $this->dataAction)) {
            $path = 'DATA';
        }

        $arrayFilter = [$path, $resource, $id, $action, $actionid];
        return $this->getApiUrl() . join('/', array_filter($arrayFilter));
    }
private function buildURL ( $ resource , $ action , $ id , $ actionid ) { $ path = 'REST' ; if ( in_array ( $ resource , $ this -> smsResources ) ) { $ path = '' ; } elseif ( in_array ( $ action , $ this -> dataAction ) ) { $ path = 'DATA' ; } $ arrayFilter = [ $ path , $ resource , $ id , $ action , $ actionid ] ; return $ this -> getApiUrl ( ) . join ( '/' , array_filter ( $ arrayFilter ) ) ; }
Build the final call url without query strings
@param string $resource Mailjet resource
@param string $action   Mailjet resource action
@param string $id       mailjet resource id
@param string $actionid mailjet resource actionid
@return string final call url
Build the final call url without query strings