public TorrentAPI(string _host, string _userName, string _password)
{
host = "http://" + _host + "/gui/";
username = _userName;
password = _password;
credentials = new CredentialCache();
credentials.Add(new Uri(host), "Basic", new NetworkCredential(username, password));
GetToken();
GetTorrents(false);
}