public function request($method, $url, $params = [], $useauth = true, $multipart = false, $headers = [])
    {
        // Check parameters and clean
        foreach ($params as $param => $val) {
            switch ($param) {
                case 'user_id':
                    if (!is_numeric($val)) {
                        throw new \Exception("user_id must be numeric $val");
                    }
                    break;
                case 'count':
                    // Don't allow count bigger than the max allowed by twitter'
                    if (isset($this->max_counts[$url]) && $val > $this->max_counts) {
                        $params[$param] = $this->max_counts[$url];
                    }
                    break;
                default:
                    break;
            }
        }

        return parent::request($method, $url, $params, $useauth, $multipart, $headers);
    }