module Auth0::Api::V1::Logs

{auth0.com/docs/api#logs}

Public Instance Methods

log(id) click to toggle source

{auth0.com/docs/api#!#get–api-logs–_id-}

# File lib/auth0/api/v1/logs.rb, line 28
def log(id)
  path = "/api/logs/#{id}"
  get(path)
end
logs(options={}) click to toggle source

{auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-}

{auth0.com/docs/api#!#get–api-logs-search–criteria-}

{auth0.com/docs/api#!#get–api-logs-from–checkpointId–take–count-}

# File lib/auth0/api/v1/logs.rb, line 11
def logs(options={})
  acceptable_params = %i(take from search_criteria page per_page sort fields exclude_fields)
  options.reject! do |key,value|
    if key.nil? ||\
       value.nil? ||\
       !acceptable_params.include?(key.to_sym)
      warn "#{key} is not in acceptable params list: #{acceptable_params}"
      true
    end
  end
  path= "/api/logs?"+URI.encode_www_form(options)
  get(path)
end
Also aliased as: search_logs
search_logs(options={})
Alias for: logs
user_logs(user_id, page=0, per_page=50) click to toggle source

{auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-}

# File lib/auth0/api/v1/logs.rb, line 34
def user_logs(user_id, page=0, per_page=50)
  path = "/api/users/#{user_id}/logs?page=#{page}&per_page=#{per_page}"
  get(path)
end