protected function getUrl($path, $queryParams = array()) { $replacements = array(); $replacements[':protocol'] = $this->client->options->get('protocol'); $replacements[':region'] = $this->client->options->get('region'); $replacements[':fullPath'] = $path; $url = strtr($this->client->options->get('url'), $replacements); //Add locale to query parameters $queryParams['locale'] = $this->client->options->get('locale'); if (!empty($queryParams)) { $url .= Utilities::build_http_query($queryParams); } return $url; }