예제 #1
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;
     }
 }