Module: Nylas::GrantsApiOperations::Find

Includes:
ApiOperations::Get
Included in:
Calendars, Events, Messages, Webhooks
Defined in:
lib/nylas/handler/grants_api_operations.rb

Overview

Finds a Nylas object.

Instance Method Summary collapse

Instance Method Details

#find(identifier:, object_id:, query_params: {}) ⇒ Array(Hash, String)

Finds a Nylas object.

Parameters:

  • identifier (String)

    Grant ID or email account to query.

  • object_id (String)

    Object ID.

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

    Query params to pass to the request.

Returns:

  • (Array(Hash, String))

    Nylas object and API request ID.



53
54
55
56
57
58
# File 'lib/nylas/handler/grants_api_operations.rb', line 53

def find(identifier:, object_id:, query_params: {})
  get(
    path: "#{api_uri}/v3/grants/#{identifier}/#{resource_name}/#{object_id}",
    query_params: query_params
  )
end