Method: Unit::Resource::AuthorizationResource.list

Defined in:
lib/unit/api_resources/authorization_resource.rb

.list(params = nil) ⇒ UnitResponse, UnitError

Get authorization by calling Unit’s API

Parameters:

  • params (GetRequest) (defaults to: nil)

Returns:



24
25
26
27
# File 'lib/unit/api_resources/authorization_resource.rb', line 24

def list(params = nil)
  response = HttpHelper.get("#{api_url}/authorizations", params: params&.to_hash, headers: headers)
  response_handler(response)
end