protected function doGet($name, $content = array(), $assoc = false) { $res = false; $this->code = 0; $this->respectRateLimit(); try { if (sizeof($content) > 0) { $rtmp = $this->client->get(sprintf('%s/%s?api_key=%s&%s', $this->node, $name, $this->key, http_build_query($content)), ['http_errors' => false]); } else { $rtmp = $this->client->get(sprintf('%s/%s?api_key=%s', $this->node, $name, $this->key), ['http_errors' => false]); } $res = $this->getResult($rtmp, $assoc); } catch (\Exception $e) { } return $res; }