예제 #1
0
        //The ping method, the server should respond by invoking "pong" on
        //the callback data
        public async Task <dynamic> Ping()
        {
            RequestHelper request = new RequestHelper(_password, _host);

            return(await request.MakeRequestAsync("ping"));
        }
예제 #2
0
        // Update executable file of the parser to the latest version, after sending the command.
        public async Task <dynamic> Update(string parser)
        {
            RequestHelper request = new RequestHelper(_password, _host);

            return(await request.MakeRequestAsync("update"));
        }
예제 #3
0
        //Getting the number of active accounts (for Yandex).
        public async Task <dynamic> GetAccountsCount(string parser)
        {
            RequestHelper request = new RequestHelper(_password, _host);

            return(await request.MakeRequestAsync("getAccountsCount"));
        }
예제 #4
0
        //Getting a list of live proxies
        public async Task <dynamic> GetProxies()
        {
            RequestHelper request = new RequestHelper(_password, _host);

            return(await request.MakeRequestAsync("getProxies"));
        }