private function buildQuery($query)
{
if (null !== $this->getLocale()) {
$query = sprintf('%s&language=%s', $query, $this->getLocale());
}
if (null !== $this->region) {
$query = sprintf('%s®ion=%s', $query, $this->region);
}
if (null !== $this->apiKey) {
$query = sprintf('%s&key=%s', $query, $this->apiKey);
}
if (null !== $this->clientId) {
$query = sprintf('%s&client=%s', $query, $this->clientId);
if (null !== $this->privateKey) {
$query = $this->signQuery($query);
}
}
return $query;
}