clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# Lists All Consent Sessions of a Subject
# This endpoint lists all subject&#39;s granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK.   The \&quot;Link\&quot; header is also included in successful responses, which contains one or more links for pagination, formatted like so: &#39;&lt;https://hydra-url/admin/oauth2/auth/sessions/consent?subject&#x3D;{user}&amp;limit&#x3D;{limit}&amp;offset&#x3D;{offset}&gt;; rel&#x3D;\&quot;{page}\&quot;&#39;, where page is one of the following applicable pages: &#39;first&#39;, &#39;next&#39;, &#39;last&#39;, and &#39;previous&#39;. Multiple links can be included in this header, and will be separated by a comma.
# @param subject [String] 
# @param [Hash] opts the optional parameters
# @return [Array<(Array<PreviousConsentSession>, Integer, Hash)>] Array<PreviousConsentSession> data, response status code and response headers
Lists All Consent Sessions of a Subject
This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK.
Lists All Consent Sessions of a Subject This endpoint lists all subject ' s granted consent sessions including client and granted scope . If the subject is unknown or has not granted any consent sessions yet the endpoint returns an empty JSON array with status code 200 OK .
def list_subject_consent_sessions_with_http_info(subject, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.list_subject_consent_sessions ...'
      end
      if @api_client.config.client_side_validation && subject.nil?
        fail ArgumentError, "Missing the required parameter 'subject' when calling AdminApi.list_subject_consent_sessions"
      end
      local_var_path = '/oauth2/auth/sessions/consent'
      query_params = opts[:query_params] || {}
      query_params[:'subject'] = subject
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'Array<PreviousConsentSession>'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.list_subject_consent_sessions",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AdminApi#list_subject_consent_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_subject_consent_sessions_with_http_info ( subject , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.list_subject_consent_sessions ...' end if @api_client . config . client_side_validation && subject . nil? fail ArgumentError , "Missing the required parameter 'subject' when calling AdminApi.list_subject_consent_sessions" end local_var_path = '/oauth2/auth/sessions/consent' query_params = opts [ :query_params ] || { } query_params [ :' subject ' ] = subject header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'Array<PreviousConsentSession>' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.list_subject_consent_sessions " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AdminApi#list_subject_consent_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Lists All Consent Sessions of a Subject
This endpoint lists all subject&#39;s granted consent sessions, including client and granted scope.
Lists All Consent Sessions of a Subject This endpoint lists all subject&#39 ; s granted consent sessions including client and granted scope .
# verify the required parameter 'subject' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
Array data, response status code and response headers
Array data response status code and response headers
Array<(Array<PreviousConsentSession>, Integer, Hash)>
subject
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters