uAL.TorrentAPI.TorrentAPI C# (CSharp) Method

TorrentAPI() public method

public TorrentAPI ( string _host, string _userName, string _password ) : System
_host string
_userName string
_password string
return System
        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);
        }