/** * Makes a generic API request. * * @param string $cmd The name of the command * @param array $params Additional parameters to send with the request. * @return Result The result of the request. */ protected function request($cmd, $params = array()) { return new Result(HttpHelper::request($this->baseUrl, $this->requestMethod, array_merge(array('cmd' => $cmd, 'key' => $this->apiKey, 'format' => 'php', 'unique_id' => uniqid($this->uniquePrefix, true)), $params))); }