Method: IntegrationApi::UtilsApi#create_user_using_post_with_http_info

Defined in:
lib/integration_api/api/utils_api.rb

#create_user_using_post_with_http_info(create_user_request, opts = {}) ⇒ Array<(UserResponseVO, Fixnum, Hash)>

Create user in vendor Create user in vendor.

Parameters:

  • create_user_request

    createUserRequest

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(UserResponseVO, Fixnum, Hash)>)

    UserResponseVO data, response status code and response headers



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/integration_api/api/utils_api.rb', line 91

def create_user_using_post_with_http_info(create_user_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UtilsApi.create_user_using_post ...'
  end
  # verify the required parameter 'create_user_request' is set
  if @api_client.config.client_side_validation && create_user_request.nil?
    fail ArgumentError, "Missing the required parameter 'create_user_request' when calling UtilsApi.create_user_using_post"
  end
  # resource path
  local_var_path = '/user'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(create_user_request)
  auth_names = ['oauth2']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'UserResponseVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UtilsApi#create_user_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end