protected function url(string $endpoint, ...$replacements): string
    {
        return $this->client->baseUrl.vsprintf($endpoint, $replacements);
    }
protected function url(string $endpoint, ...$replacements): string
    {
        return $this->client->baseUrl.vsprintf($endpoint, $replacements);
    }
protected function url ( string $ endpoint , ... $ replacements ) : string { return $ this -> client -> baseUrl . vsprintf ( $ endpoint , $ replacements ) ; }
Generate URL from base url and given endpoint.

@param string $endpoint
@param array  $replacements

@return string
Generate URL from base url and given endpoint .