VirtoCommerce.SwaggerApiClient.Client.ApiClient.CallApi C# (CSharp) Method

CallApi() public method

Makes the HTTP request (Sync).
public CallApi ( String path, RestSharp method, String>.Dictionary queryParams, String postBody, String>.Dictionary headerParams, String>.Dictionary formParams, FileParameter>.Dictionary fileParams, String>.Dictionary pathParams, String authSettings ) : Object
path String URL path.
method RestSharp HTTP method.
queryParams String>.Dictionary Query parameters.
postBody String HTTP body (POST request).
headerParams String>.Dictionary Header parameters.
formParams String>.Dictionary Form parameters.
fileParams FileParameter>.Dictionary File parameters.
pathParams String>.Dictionary Path parameters.
authSettings String Authentication settings.
return Object
        public Object CallApi(
            String path, RestSharp.Method method, Dictionary<String, String> queryParams, String postBody,
            Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
            Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams, String[] authSettings)
        {
            var request = PrepareRequest(
                path, method, queryParams, postBody, headerParams, formParams, fileParams, pathParams, authSettings);
            var response = RestClient.Execute(request);
            StatusCode = (int) response.StatusCode;
            ResponseHeaders = response.Headers.ToDictionary(x => x.Name, x => x.Value.ToString());
            return (Object) response;
        }