class UltracartClient::UserApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/ultracart_api/api/user_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end
new_using_api_key(simple_key, verify_ssl = true, debugging = false) click to toggle source
# File lib/ultracart_api/api/user_api.rb, line 23
def self.new_using_api_key(simple_key, verify_ssl = true, debugging = false)
  api_config = Configuration.new
  api_config.api_key_prefix['x-ultracart-simple-key'] = simple_key
  api_config.api_version = '2017-03-01'
  api_config.verify_ssl = verify_ssl

  api_client = ApiClient.new(api_config)
  api_client.config.debugging = debugging

  UltracartClient::UserApi.new(api_client)
end

Public Instance Methods

delete_group(group_oid, opts = {}) click to toggle source

Delete a group Delete a group on the UltraCart account. @param group_oid The group_oid to delete. @param [Hash] opts the optional parameters @return [nil]

# File lib/ultracart_api/api/user_api.rb, line 40
def delete_group(group_oid, opts = {})
  delete_group_with_http_info(group_oid, opts)
  nil
end
delete_group_with_http_info(group_oid, opts = {}) click to toggle source

Delete a group Delete a group on the UltraCart account. @param group_oid The group_oid to delete. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 50
def delete_group_with_http_info(group_oid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.delete_group ...'
  end
  # verify the required parameter 'group_oid' is set
  if @api_client.config.client_side_validation && group_oid.nil?
    fail ArgumentError, "Missing the required parameter 'group_oid' when calling UserApi.delete_group"
  end
  # resource path
  local_var_path = '/user/groups/{group_oid}'.sub('{' + 'group_oid' + '}', group_oid.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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; charset=UTF-8'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#delete_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
delete_user(user_id, opts = {}) click to toggle source

Delete a user Delete a user on the UltraCart account. @param user_id The user_id to delete. @param [Hash] opts the optional parameters @return [nil]

# File lib/ultracart_api/api/user_api.rb, line 94
def delete_user(user_id, opts = {})
  delete_user_with_http_info(user_id, opts)
  nil
end
delete_user_with_http_info(user_id, opts = {}) click to toggle source

Delete a user Delete a user on the UltraCart account. @param user_id The user_id to delete. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 104
def delete_user_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.delete_user ...'
  end
  # verify the required parameter 'user_id' is set
  if @api_client.config.client_side_validation && user_id.nil?
    fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.delete_user"
  end
  # resource path
  local_var_path = '/user/users/{user_id}'.sub('{' + 'user_id' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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; charset=UTF-8'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_group(group_oid, opts = {}) click to toggle source

Retrieve a group Retrieves a single group using the specified group id. @param group_oid The group id to retrieve. @param [Hash] opts the optional parameters @return [nil]

# File lib/ultracart_api/api/user_api.rb, line 148
def get_group(group_oid, opts = {})
  get_group_with_http_info(group_oid, opts)
  nil
end
get_group_with_http_info(group_oid, opts = {}) click to toggle source

Retrieve a group Retrieves a single group using the specified group id. @param group_oid The group id to retrieve. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 158
def get_group_with_http_info(group_oid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.get_group ...'
  end
  # verify the required parameter 'group_oid' is set
  if @api_client.config.client_side_validation && group_oid.nil?
    fail ArgumentError, "Missing the required parameter 'group_oid' when calling UserApi.get_group"
  end
  # resource path
  local_var_path = '/user/groups/{group_oid}'.sub('{' + 'group_oid' + '}', group_oid.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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 = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#get_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_groups(opts = {}) click to toggle source

Get groups @param [Hash] opts the optional parameters @return [GroupsResponse]

# File lib/ultracart_api/api/user_api.rb, line 200
def get_groups(opts = {})
  data, _status_code, _headers = get_groups_with_http_info(opts)
  data
end
get_groups_with_http_info(opts = {}) click to toggle source

Get groups @param [Hash] opts the optional parameters @return [Array<(GroupsResponse, Fixnum, Hash)>] GroupsResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 208
def get_groups_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.get_groups ...'
  end
  # resource path
  local_var_path = '/user/groups'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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 = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'GroupsResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#get_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_user(user_id, opts = {}) click to toggle source

Retrieve a user Retrieves a single user using the specified user id. @param user_id The user id to retrieve. @param [Hash] opts the optional parameters @return [UserResponse]

# File lib/ultracart_api/api/user_api.rb, line 249
def get_user(user_id, opts = {})
  data, _status_code, _headers = get_user_with_http_info(user_id, opts)
  data
end
get_user_logins(user_id, opts = {}) click to toggle source

Retrieve a user's login history Retrieves logins for a single user using the specified user id. @param user_id The user id to retrieve. @param [Hash] opts the optional parameters @return [UserLoginsResponse]

# File lib/ultracart_api/api/user_api.rb, line 304
def get_user_logins(user_id, opts = {})
  data, _status_code, _headers = get_user_logins_with_http_info(user_id, opts)
  data
end
get_user_logins_with_http_info(user_id, opts = {}) click to toggle source

Retrieve a user&#39;s login history Retrieves logins for a single user using the specified user id. @param user_id The user id to retrieve. @param [Hash] opts the optional parameters @return [Array<(UserLoginsResponse, Fixnum, Hash)>] UserLoginsResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 314
def get_user_logins_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.get_user_logins ...'
  end
  # verify the required parameter 'user_id' is set
  if @api_client.config.client_side_validation && user_id.nil?
    fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.get_user_logins"
  end
  # resource path
  local_var_path = '/user/users/{user_id}/logins'.sub('{' + 'user_id' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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 = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'UserLoginsResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#get_user_logins\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_user_with_http_info(user_id, opts = {}) click to toggle source

Retrieve a user Retrieves a single user using the specified user id. @param user_id The user id to retrieve. @param [Hash] opts the optional parameters @return [Array<(UserResponse, Fixnum, Hash)>] UserResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 259
def get_user_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.get_user ...'
  end
  # verify the required parameter 'user_id' is set
  if @api_client.config.client_side_validation && user_id.nil?
    fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.get_user"
  end
  # resource path
  local_var_path = '/user/users/{user_id}'.sub('{' + 'user_id' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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 = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'UserResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_users(opts = {}) click to toggle source

Get users @param [Hash] opts the optional parameters @return [UsersResponse]

# File lib/ultracart_api/api/user_api.rb, line 357
def get_users(opts = {})
  data, _status_code, _headers = get_users_with_http_info(opts)
  data
end
get_users_with_http_info(opts = {}) click to toggle source

Get users @param [Hash] opts the optional parameters @return [Array<(UsersResponse, Fixnum, Hash)>] UsersResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 365
def get_users_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.get_users ...'
  end
  # resource path
  local_var_path = '/user/users'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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 = nil
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'UsersResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
insert_group(group, opts = {}) click to toggle source

Insert a group Insert a group on the UltraCart account. @param group Group to insert @param [Hash] opts the optional parameters @return [GroupResponse]

# File lib/ultracart_api/api/user_api.rb, line 406
def insert_group(group, opts = {})
  data, _status_code, _headers = insert_group_with_http_info(group, opts)
  data
end
insert_group_with_http_info(group, opts = {}) click to toggle source

Insert a group Insert a group on the UltraCart account. @param group Group to insert @param [Hash] opts the optional parameters @return [Array<(GroupResponse, Fixnum, Hash)>] GroupResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 416
def insert_group_with_http_info(group, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.insert_group ...'
  end
  # verify the required parameter 'group' is set
  if @api_client.config.client_side_validation && group.nil?
    fail ArgumentError, "Missing the required parameter 'group' when calling UserApi.insert_group"
  end
  # resource path
  local_var_path = '/user/groups'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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; charset=UTF-8'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(group)
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  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 => 'GroupResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#insert_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
insert_user(user, opts = {}) click to toggle source

Insert a user Insert a user on the UltraCart account. @param user User to insert @param [Hash] opts the optional parameters @return [UserResponse]

# File lib/ultracart_api/api/user_api.rb, line 461
def insert_user(user, opts = {})
  data, _status_code, _headers = insert_user_with_http_info(user, opts)
  data
end
insert_user_with_http_info(user, opts = {}) click to toggle source

Insert a user Insert a user on the UltraCart account. @param user User to insert @param [Hash] opts the optional parameters @return [Array<(UserResponse, Fixnum, Hash)>] UserResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 471
def insert_user_with_http_info(user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.insert_user ...'
  end
  # verify the required parameter 'user' is set
  if @api_client.config.client_side_validation && user.nil?
    fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.insert_user"
  end
  # resource path
  local_var_path = '/user/users'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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; charset=UTF-8'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(user)
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  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 => 'UserResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#insert_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_group(group, group_oid, opts = {}) click to toggle source

Update a group Update a group on the UltraCart account. @param group Group to update @param group_oid The group_oid to update. @param [Hash] opts the optional parameters @return [GroupResponse]

# File lib/ultracart_api/api/user_api.rb, line 517
def update_group(group, group_oid, opts = {})
  data, _status_code, _headers = update_group_with_http_info(group, group_oid, opts)
  data
end
update_group_with_http_info(group, group_oid, opts = {}) click to toggle source

Update a group Update a group on the UltraCart account. @param group Group to update @param group_oid The group_oid to update. @param [Hash] opts the optional parameters @return [Array<(GroupResponse, Fixnum, Hash)>] GroupResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 528
def update_group_with_http_info(group, group_oid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.update_group ...'
  end
  # verify the required parameter 'group' is set
  if @api_client.config.client_side_validation && group.nil?
    fail ArgumentError, "Missing the required parameter 'group' when calling UserApi.update_group"
  end
  # verify the required parameter 'group_oid' is set
  if @api_client.config.client_side_validation && group_oid.nil?
    fail ArgumentError, "Missing the required parameter 'group_oid' when calling UserApi.update_group"
  end
  # resource path
  local_var_path = '/user/groups/{group_oid}'.sub('{' + 'group_oid' + '}', group_oid.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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; charset=UTF-8'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(group)
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'GroupResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#update_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_user(user, user_id, opts = {}) click to toggle source

Update a user Update a user on the UltraCart account. @param user User to update @param user_id The user_id to update. @param [Hash] opts the optional parameters @return [UserResponse]

# File lib/ultracart_api/api/user_api.rb, line 578
def update_user(user, user_id, opts = {})
  data, _status_code, _headers = update_user_with_http_info(user, user_id, opts)
  data
end
update_user_with_http_info(user, user_id, opts = {}) click to toggle source

Update a user Update a user on the UltraCart account. @param user User to update @param user_id The user_id to update. @param [Hash] opts the optional parameters @return [Array<(UserResponse, Fixnum, Hash)>] UserResponse data, response status code and response headers

# File lib/ultracart_api/api/user_api.rb, line 589
def update_user_with_http_info(user, user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UserApi.update_user ...'
  end
  # verify the required parameter 'user' is set
  if @api_client.config.client_side_validation && user.nil?
    fail ArgumentError, "Missing the required parameter 'user' when calling UserApi.update_user"
  end
  # verify the required parameter 'user_id' is set
  if @api_client.config.client_side_validation && user_id.nil?
    fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.update_user"
  end
  # resource path
  local_var_path = '/user/users/{user_id}'.sub('{' + 'user_id' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
  # 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; charset=UTF-8'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(user)
  auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'UserResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UserApi#update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end