protected function buildApiUrl($url)
    {
        $api = $this->options->isWPAPI() ? $this->options->apiPrefix() : '/wc-api/';

        return \rtrim($url, '/') . $api . $this->options->getVersion() . '/';
    }
protected function buildApiUrl($url)
    {
        $api = $this->options->isWPAPI() ? $this->options->apiPrefix() : '/wc-api/';

        return \rtrim($url, '/') . $api . $this->options->getVersion() . '/';
    }
protected function buildApiUrl ( $ url ) { $ api = $ this -> options -> isWPAPI ( ) ? $ this -> options -> apiPrefix ( ) : '/wc-api/' ; return \ rtrim ( $ url , '/' ) . $ api . $ this -> options -> getVersion ( ) . '/' ; }
Build API URL.

@param string $url Store URL.

@return string
Build API URL .