Пример #1
0
 private AuthResponse RunRequest(QueryMethod method, string url, string data)
 {
     AuthRequest authRequest = new AuthRequest(_consumerKey, _consumerSecret, _appName);
     using (authRequest)
     {
         OnRequest(this, new RequestEventArgs(method.ToString(), url, data));
         AuthResponse authResponse = authRequest.AuthWebRequest(method, url, data);
         OnResponse(this, new ResponseEventArgs(authResponse.Status, authResponse.Data));
         return authResponse;
     }
 }
Пример #2
0
        private AuthResponse ExecuteRequest(QueryMethod method, string url, string data)
        {
            string      appName     = this.GetAppName();
            AuthRequest authRequest = new AuthRequest(_consumerKey, _consumerSecret, appName, _useCompression, _apiVersion);

            using (authRequest)
            {
                OnRequest(this, new RequestEventArgs(method.ToString(), url, data));
                AuthResponse authResponse = authRequest.AuthWebRequest(method, url, data);
                OnResponse(this, new ResponseEventArgs(authResponse.Status, authResponse.Data));
                return(authResponse);
            }
        }
Пример #3
0
 private AuthResponse ExecuteRequest(QueryMethod method, string url, string data)
 {
     string appName = this.GetAppName();
     AuthRequest authRequest = new AuthRequest(_consumerKey, _consumerSecret, appName, _useCompression, _apiVersion);
     using (authRequest)
     {
         OnRequest(this, new RequestEventArgs(method.ToString(), url, data));
         AuthResponse authResponse = authRequest.AuthWebRequest(method, url, data);
         OnResponse(this, new ResponseEventArgs(authResponse.Status, authResponse.Data));
         return authResponse;
     }
 }