lib/nylas/resources/events.rb in nylas-6.0.0 vs lib/nylas/resources/events.rb in nylas-6.0.1

- old
+ new

@@ -13,12 +13,12 @@ # Return all events. # # @param identifier [String] Grant ID or email account to query. # @param query_params [Hash] Query params to pass to the request. - # @return [Array(Array(Hash), String)] The list of events and API Request ID. + # @return [Array(Array(Hash), String, String)] The list of events, API Request ID, and next cursor. def list(identifier:, query_params:) - get( + get_list( path: "#{api_uri}/v3/grants/#{identifier}/events", query_params: query_params ) end