protected function getPath($path)
    {
        $hasHttp = strpos($path, 'http');
        if (false === $hasHttp || $hasHttp !== 0) {
            return $this->options['base_url'] . $path;
        }

        return $path;
    }
protected function getPath($path)
    {
        $hasHttp = strpos($path, 'http');
        if (false === $hasHttp || $hasHttp !== 0) {
            return $this->options['base_url'] . $path;
        }

        return $path;
    }
protected function getPath ( $ path ) { $ hasHttp = strpos ( $ path , 'http' ) ; if ( false === $ hasHttp || $ hasHttp !== 0 ) { return $ this -> options [ 'base_url' ] . $ path ; } return $ path ; }
Generate a complete URL using the option "base_url"

@param  string $path The api uri
@return string
Generate a complete URL using the option base_url