lib/assets/atrium-ruby-2.1.0/lib/atrium-ruby/api/users_api.rb
# List users
# Use this endpoint to list every user you&#39;ve created in Atrium.
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page Specify current page.
# @option opts [Integer] :records_per_page Specify records per page.
# @return [Array<(UsersResponseBody, Fixnum, Hash)>] UsersResponseBody data, response status code and response headers
List users
Use this endpoint to list every user you've created in Atrium.
List users Use this endpoint to list every user you ' ve created in Atrium .
def list_users_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UsersApi.list_users ...'
      end
      local_var_path = '/users'
      query_params = {}
      query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
      query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
      form_params = {}
      post_body = nil
      auth_names = ['apiKey', 'clientID']
      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 => 'UsersResponseBody')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: UsersApi#list_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_users_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: UsersApi.list_users ...' end local_var_path = '/users' query_params = { } query_params [ :' page ' ] = opts [ :' page ' ] if ! opts [ :' page ' ] . nil? query_params [ :' records_per_page ' ] = opts [ :' records_per_page ' ] if ! opts [ :' records_per_page ' ] . nil? header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/vnd.mx.atrium.v1+json' ] ) form_params = { } post_body = nil auth_names = [ 'apiKey' , 'clientID' ] 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 => 'UsersResponseBody' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: UsersApi#list_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List users
Use this endpoint to list every user you&#39;ve created in Atrium.
List users Use this endpoint to list every user you&#39 ; ve created in Atrium .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model)
UsersResponseBody data, response status code and response headers
UsersResponseBody data response status code and response headers
Array<(UsersResponseBody, Fixnum, Hash)>
opts
:records_per_page Specify records per page.
: records_per_page Specify records per page .
<not_specific>
opts the optional parameters
opts the optional parameters