Module: Nylas::AdminApiOperations::List

Includes:
ApiOperations::Get
Included in:
Grants, RedirectUris
Defined in:
lib/nylas/handler/admin_api_operations.rb

Overview

Lists Nylas objects.

Instance Method Summary collapse

Instance Method Details

#list(query_params: {}) ⇒ Array(Hash, String)

Lists Nylas objects.

Parameters:

  • query_params (Hash, {}) (defaults to: {})

    Query params to pass to the request.

Returns:

  • (Array(Hash, String))

    List of Nylas objects and API Request ID.



35
36
37
38
39
40
# File 'lib/nylas/handler/admin_api_operations.rb', line 35

def list(query_params: {})
  get(
    path: "#{api_uri}/v3/#{resource_name}",
    query_params: query_params
  )
end