module Epitech::Api::SearchApi
Public Instance Methods
get_logins(opts={})
click to toggle source
Used to search logins across the Ionis users through 3 criterias :
-
Schoolname
-
Promo
-
City
@param opts [Hash] A Hash that should contain at least one of the 3 criterias @return [Array] An Array of logins
# File lib/api/search_api.rb, line 17 def get_logins(opts={}) call_api(action: 'get_logins', school: opts[:school], promo: opts[:promo], city: opts[:city]) end
search(query)
click to toggle source
Used to search across the Ionis users @param query [String] First/Last Name or Login (or a part of it)
of who you are looking for.
@return [Array] An Array of logins
# File lib/api/search_api.rb, line 7 def search(query) call_api(action: 'search', query: query) end