code: protected function buildUrl($path, array $params = null)
      {
          if ($params == null) {
              $params = array();
          }
          $url = sprintf(
              '%s/spaces/%s/%s?%s',
              $this->endpoint,
              urlencode($this->spaceId),
              $path,
              http_build_query($params)
          );
          return $url;
      }
docs: @param string $path
  @param array  $params
  
  @return string